摘要: jquery: $("input[type='checkbox']").attr('value')返回结果:501$("input[type='checkbox']").is(':checked')返回结果:选中=true,未选中=false js: if(document.getElemen... 阅读全文
posted @ 2013-03-11 09:58 嗨,你的益达~~~ 阅读(304944) 评论(0) 推荐(8) 编辑
摘要: 这种情况,就要用类似java的try catch语句 如: function test(target,currentIndex,totalIndex){ try { var selectedRole = $(target.jEvent.target).val(); var mobile="#conf... 阅读全文
posted @ 2013-03-11 09:51 嗨,你的益达~~~ 阅读(381) 评论(0) 推荐(0) 编辑
摘要: <select name="sel" id="rtl" ><option>菜单一</option><option>菜单二</option><option>菜单三</option></select><script language="javascript"> function getselectvalue(){ var rtl=document.getElementById("rtl");//菜单一 alert 阅读全文
posted @ 2013-03-11 09:47 嗨,你的益达~~~ 阅读(141) 评论(0) 推荐(0) 编辑
摘要: jquery : $("#id").hide() $("#id").show() js: document.getElementById("dd").style.display='block'; document.getElementById("dd").style.display='none';... 阅读全文
posted @ 2013-03-11 09:42 嗨,你的益达~~~ 阅读(149) 评论(0) 推荐(0) 编辑