摘要:
css控制 .banner-container {background: none;background-size: 100% 100%;} 阅读全文
摘要:
alert($("#id option:selected").val()); <selected id="id"> <option value="1" selected="selected">1</option> <option value="2">2</option> </selected> 阅读全文
摘要:
校验手机号 var regex = /^(((13[0-9]{1})|(14[0-9]{1})|(17[0]{1})|(15[0-3]{1})|(15[5-9]{1})|(18[0-9]{1}))+\d{8})$/; var phonenum = $("#phonenum").val(); if(! 阅读全文
摘要:
html <input type="text" id="id"> jquery $("#id").bind('input propertychange',function() { //dosomething } }); 阅读全文
摘要:
html <input type="checkbox" id="z" checked="checked"/> Jquery $(document).ready(function() {$("#z").change(function(){ if($("#z").is(":checked")){ ale 阅读全文