摘要:
jquery: $("input[type='checkbox']").attr('value')返回结果:501$("input[type='checkbox']").is(':checked')返回结果:选中=true,未选中=false js: if(document.getElemen... 阅读全文
摘要:
这种情况,就要用类似java的try catch语句 如: function test(target,currentIndex,totalIndex){ try { var selectedRole = $(target.jEvent.target).val(); var mobile="#conf... 阅读全文
摘要:
<select name="sel" id="rtl" ><option>菜单一</option><option>菜单二</option><option>菜单三</option></select><script language="javascript"> function getselectvalue(){ var rtl=document.getElementById("rtl");//菜单一 alert 阅读全文
摘要:
jquery : $("#id").hide() $("#id").show() js: document.getElementById("dd").style.display='block'; document.getElementById("dd").style.display='none';... 阅读全文