Reply
Old 03-22-2008, 04:13 PM HTML
Junior Talker

Posts: 1
Name: Anil
Hi,
I am trying few things using HTML and facing some problems hope some one can help me in this.
My requirement.
I have got a series of radio buttons and checkboxes, however on page load the user should see only the first radio button, as soon as the user clicks on the first radio button, the next radio button should appear below the first radio button and so on ?
From this I have undustood is that my each radio button should be in the div tag, I have done that but somehow i am not able to call the next radio button.
can someone explain how the same can be done.
thanks
anilhk is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-22-2008, 06:30 PM Re: HTML
carloncho's Avatar
Skilled Talker

Posts: 80
Name: Carlos
Maybe you must to put the dislpay property of all radio buttons, except the first, as 'none':
Quote:
<input type="radio" style="display:none" />
and put a javascript code in onclick event that set the next radio button property display to 'block' or '';
Quote:
<input type="radio" onclick="docuement.getElementById('idFromNextRadio ').style.display = '';" />
You must to find a method to make this automatically if there is much radios.
Another good if you place all radios toghether is to use the DOM nextNode or similar, but it not work fine in all browsers.
__________________
-----------------------
http://www.xumby.com
carloncho is offline
Reply With Quote
View Public Profile Visit carloncho's homepage!
 
Old 03-23-2008, 06:45 PM Re: HTML
Novice Talker

Posts: 8
Name: Lance
Another thing you can do is create a javascript function at the top, a series of them, and on the onClick events for radio and checkboxes, have them show the next based on the user input... sounds more complicated than it is... there are examples of this at:
http://www.javascriptkit.com
Old one but a good one
LanceWassing is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12390 seconds with 12 queries