jquery 无刷新加载执行,显示数据

<script type="text/javascript">
$(function(){
		
	$("#resetpass").click(function(){
		$.ajax({
			   type: "POST",
			   url: "/personnel/resetpass",
			   success: function(msg){
				   
			     $("#init_password").text(msg);
			     
			     //alert(msg);
			     //$("#init_password").val(msg);
				//alert(msg);return false;
			   }
		});
	});
	
	
}); 

</script>




            <li class="liheight bgcolor">
                <label>初始密码:</label>
                <span id="init_password"> </span>
                <span class="left1"><input type="button" id="resetpass" name="resetpass" class="button_tbg" value="重置密码"  /></span>
            </li>

 

posted @ 2012-08-13 14:50  网络爱上点击  阅读(3637)  评论(0)    收藏  举报