JQuery...

JQuery ajax异步验证

jQuery代码如下: $(document).ready(function() { $('.result').hide(); $('#submit').click(function(){ var username = $('.username').val(); var data = 'username=' +username; $.ajax({ ...

JQuery...

级联下拉菜单-JQuery

js代码: //1级下拉列表框 function show_hnbInfo() { var ss = Math.random(); $.ajax( { type : 'POST', url : 'getAllHnbInfo', data : 'id=' + ss, success : function(msg) { // 清空表格 ...

JavaScript...

JS常见事件

Insert title here #e02, #e022 { border: 1px solid #000000; height: 200px; width: 200px; } //页面卸载前 window.onbeforeunload = function(){ return "在玩一会吧?"; }...