juery form 实例

时间:2015-10-10 05:57:40
【文件属性】:
文件名称:juery form 实例
文件大小:38KB
文件格式:JS
更新时间:2015-10-10 05:57:40
juery form $(document).ready(function() { var options = { //target: '#teacher_output', beforeSubmit: showRequest, //提交前调用的函数 success: showResponse //提交后调用的函数 }; $('#teacher_form').ajaxForm(options); }); function showRequest(formData, jqForm, options) { if($.trim($("#teacher").val())=='') { alert('请选择需要上传的教师资格证书进行验证!'); return false; }else{ $("#teacher_submit").hide(1000,show_output()); return true; } } function showResponse(responseText, statusText, xhr, $form) { $("#output").hide(1000); $("#teacher_isnot").html('正在审请中'); $("#teacher_validate").html('审核中..'); $("#info_back").show(1000,fun()); }

网友评论

  • 不太好,只是一些js方法,