getElementById ,getElementsByName ,getElementsByTagName大概介绍,后两个是得到集合,byid只是得到单个对象 getElementById 的用法。举个例子: <a id="link1" name="link1" href=http://www.aidengfeng.com>爱登
//遍历option和添加、移除option function changeShipMethod(shipping){ var len = $("select[@name=ISHIPTYPE] option").length if(shipping.value != "CA"){ $("select[@name=ISHIPT
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号