随笔分类 -  jquery

摘要:男 女 radio: 获取 var sex = $(":radio[name=sex]:checked").val(); var sex =$("input[name=sex]:checked").val(); 设置 $(".man").attr("checked", t... 阅读全文
posted @ 2013-12-09 16:57 yuluhuang 阅读(175) 评论(0) 推荐(0)
摘要:id: node id, which is important to load remote datatext: node text to showstate: node state, 'open' or 'closed', default is 'open'. When set to 'closed', the node have children nodes and will load them from remote sitechecked: Indicate whether the node is checked sele 阅读全文
posted @ 2013-11-30 10:50 yuluhuang 阅读(136) 评论(0) 推荐(0)
摘要:$("input[name='xxx']").val();http://www.w3school.com.cn/jquery/jquery_ref_selectors.asp 阅读全文
posted @ 2013-09-15 19:51 yuluhuang 阅读(108) 评论(0) 推荐(0)
摘要:禁用 function AddWz() { $("#btn_submit").attr({ "disabled": "disabled" }); }启用$("#btn_submit").removeAttr("disabled");隐藏$('#test').css('display', 'block');显示$('#test').removeAttr("style")通过使用 addClass() 和 remov 阅读全文
posted @ 2013-08-16 15:23 yuluhuang 阅读(718) 评论(0) 推荐(0)