請原諒我的無知,但我一直在尋找這一段時間,我無法弄清楚如何更改以下的href:如何使用jQuery更改href屬性onmouseover?
<a id="p2749244"class="nohover"onfocus="this.blur()"name="index"rel="history"onmouseout="this.className='nohover';"onmouseover="this.className='hover';"href="address">
做什麼樣的選擇我需要用做這個?提前致謝。
你應該使用'setAttribute' - 儘管我會按照Daniels的建議去使用jQuery來完成整個代碼。 – 2012-02-06 13:53:56