jquery总结
提出问题:
总感觉直接在脚本里面注册的事件,提交一次之后,再次提交,就忽略了脚本,大家有没有感觉到(后来只好把js方法写在控件自带方法里面了):
phone1.keyup(function(e){var key = window.event ? e.keyCode : e.which;});
.click(function(){});
总结:
1,判断div是否隐藏:$("#agentDiv").is(":hidden")(从seo的角度,是不是要少些display:none)
2,checkbox,radio选中: $("input[name='userType']:checked")
3,select选中:($("#drCode option:selected")
待续。。。
浙公网安备 33010602011771号