afam4eva
03 Oct 2009, 04:48 AM
pls can someone help me with a javascript that displays a particular form when you click on a radio button, like what you have at https://www.hostupon.com/hosting/cart.php?a=add&pid=1. I want to use it for my host website.
I'll be very grateful.
SmartAlec
03 Oct 2009, 09:19 PM
-create all the radio buttons and input elements (so they are all visible)
-when the window.onload event is fired hide all the input elements (or the stuff u want hidden). eg if you want to hide a div called "domaininput" : document.getElementById("domaininput").style.display = "none";
-use event handlers for each of the radio buttons using the same concept as above to show/hide elements
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.