<div class="container-fluid">
<img class="pull-left" onclick="MarkPopup()" style="width:50px;height:50px" src="/assets/mark.jpg">
<ul class="nav pull-right">
<li>
<li>
<a href="/ContactClub">Contact Club</a>
</li>
<li>
<li class="dropdown">
</ul>
</div>
我想將href值「/ ContactClub」更改爲「somethingelse」。這樣做怎麼樣?如何使用javascript或jquery更改href值?
'setAttribute'不應該優先。實際上,在這種情況下根本不應該使用它。如果存在,請直接設置屬性。 – bearfriend