随笔分类 -  jquery

67.(jquery)给button添加onclikk事件
摘要:$("#abutton").on('click',function(){ xxxx ; }); 阅读全文
posted @ 2021-07-29 20:44 ♩♪♫♬ 阅读(61) 评论(0) 推荐(0)
23.(jquery)如何使用控件change事件
摘要:$("#<%= this.txtStudentId.ClientID%>").change(function(){ alert($(this).val()); }); 阅读全文
posted @ 2021-07-21 22:41 ♩♪♫♬ 阅读(61) 评论(0) 推荐(0)
20.(jquery)如何调用ajax(),使用ajax参数,完成get请求,并且返回json格式数据
摘要:$.ajax({ type:'get', url:"../handler?id="+book.BookID+"&x="+Math.random(), async:true, data:null, datatype:"json", success:function(result) { for(var 阅读全文
posted @ 2021-07-21 21:34 ♩♪♫♬ 阅读(94) 评论(0) 推荐(0)
13.(jquery)如何调用ajax(),使用ajax参数,完成post请求,并且返回json格式数据
摘要:var bookid = "00x22146656"; $.ajax({ type:"post", url:"../getBookInfo.handler?bookid = "+bookid, data:null, async:true, dataType:"json", success:funct 阅读全文
posted @ 2021-07-20 19:57 ♩♪♫♬ 阅读(85) 评论(0) 推荐(0)
8.(jquery)使用jQuery 函数.val(),对asp.net web 服务器控件进行文本框赋值
摘要:1.var info1 = stu.split(','); 2.$("#<%= this.txtBookCode.ClientID%>").val(parseFloat(info1[1])); 阅读全文
posted @ 2021-07-19 23:26 ♩♪♫♬ 阅读(83) 评论(0) 推荐(0)
4.(jquery)使用$(".XX")选择器的class过滤函数 .not(".XX") 进行批量禁用控件操作
摘要:$(".form-control").not(".panel-update-control").prop("disabled",true); 阅读全文
posted @ 2021-07-19 21:15 ♩♪♫♬ 阅读(72) 评论(0) 推荐(0)
2. ( jquery ) 全选、反选和获取多个checkbox的值
摘要:<ul id="list"> <li><label><input type="checkbox" value="1">1 </label></li> <li><label><input type="checkbox" value="2"> 2</label></li> <li><label><inp 阅读全文
posted @ 2021-01-07 21:47 ♩♪♫♬ 阅读(119) 评论(0) 推荐(0)