Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Interesting one!

    hi

    i kept an online exam in my website.......

    i want to display the SUBMIT button only when the user selects a option (in here radio button)

    please give me the script a simple one for this...


    i am waiting eagirely

    thanx

    bye
    Last edited by WA; 04-20-2005 at 07:28 PM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Code:
    <body onload="document.frm.btnSubmit.style.display='none'">
    <form name="frm">
    <input type="radio" name="rad" value="1" />Option 1
    <input type="radio" name="rad" value="2" onclick="this.form.btnSubmit.style.display='inline';" />Option 2
    <input type="submit" name="btnSubmit" value="Submit" /> 
    </form>
    </body>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •