Hello,
I'm working on my shopping cart and i want something if the user
Choose the creditcard radio button then he can choose from the shipment method also with radio buttons ups, express mail buttons. If he choose COD he can only choose express mail. I don't know if this is possible with javascript and it will works for iexplorer and netscape.
Regards
Kris
radio buttons
Moderator: General Moderators
You can disable form-elements from javascript.
Check this for code-samples:
http://www.codetoad.com/javascript/enab ... lement.asp
Check this for code-samples:
http://www.codetoad.com/javascript/enab ... lement.asp
yes it does definatly work
all css attributes are available thru javascript
you may also want to set obj.style.display="none" to completly remove the object from the normal flow.
check the w3c pages for css level1 and 2 reference
Code: Select all
<input type="button" value="a button" onclick="hideme(this)">
<script language="javascript">
function hideme(obj) {
obj.style.visibility="hidden";
}
</script>you may also want to set obj.style.display="none" to completly remove the object from the normal flow.
check the w3c pages for css level1 and 2 reference