Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 1
Name: Anil
Trades: 0
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
 
 
Register now for full access!
Old 03-22-2008, 05:30 PM Re: HTML
carloncho's Avatar
Skilled Talker

Posts: 80
Name: Carlos
Trades: 0
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.
__________________
-----------------------

Please login or register to view this content. Registration is FREE
carloncho is offline
Reply With Quote
View Public Profile Visit carloncho's homepage!
 
Old 03-23-2008, 05:45 PM Re: HTML
Novice Talker

Posts: 8
Name: Lance
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.25583 seconds with 12 queries