I have a dropdown menu containing currency values, and a new page loads with the selected currency as a value in the URL. The code for that is as follows:
<div id="procurselect">
<a href="javascript:void(0)" id="chosedCur"><?php echo $curr ; ?></a>
<ul style="display: none;">
<li><a rel="nofollow" title="Euro" onclick="set_currency('http://www.example.com/product.php?pid=<?php echo " $pid " ;?>&cur=EUR');" href="javascript:void(0)" target="_top" rel=nofollow>EUR</a>
</li>
<li><a rel="nofollow" title="Pound Sterling" onclick="set_currency('http://www.example.com/product.php?pid=<?php echo " $pid " ;?>&cur=GBP');" href="javascript:void(0)" target="_top" rel=nofollow>GBP</a>
</li>
<li><a rel="nofollow" title="Canadian Dollar" onclick="set_currency('http:/www.example.com/product.php?pid=<?php echo " $pid " ;?>&cur=CAD');" href="javascript:void(0)" target="_top" rel=nofollow>CAD</a>
</li>
<li><a rel="nofollow" title="Australian Dollar" onclick="set_currency('http://www.example.com/product.php?pid=<?php echo " $pid " ;?>&cur=AUD');" href="javascript:void(0)" target="_top" rel=nofollow>AUD</a>
</li>
........(cont....)
</ul>
</div>
<script>
imitSelect.show({
Target: $('#procurselect'),
Width: 30
});
</script>
I have another add product button on my page using simplecart.js.
The button code is as follows:
<a class="item_add" href="javascript:;">
<img src="images/addtocart.png" alt="Add to Cart" width="197" height="58" />
</a>
I want the above currency dropdown to be disabled once a user clicks on the addcart button so that he cannot change the currency again from the dropdown.
I am using jQuery.
How is this possible in jQuery?
Update:
I need the disabled option to persist on all pages....
Thanks in advance.