日期:2014-05-16  浏览次数:20754 次

jquery ajax input 失去焦点

?

<input type="text" id="cardNo" name="cardNo" ?onBlur="ajaxTest();"/>

?

function ajaxTest(){

var formParam = $("#form").serialize();//序列化表格内容为字符串 ? ?

? ? $.ajax({ ? ?

? ? ? ? type:'post', ? ? ? ?

? ? ? ? url:'<%=request.getContextPath() %>/read.do?method=jqueryajax', ? ?

? ? ? ? data:formParam, ? ?

? ? ? ? cache:false, ? ?

? ? ? ? dataType:'json', ? ?

? ? ? ? success:function(data){ ? ?

? ? ? ? } ? ?

? ? }); ? ?

}