Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could a radio button when selected

Status
Not open for further replies.

tatika

MIS
Oct 6, 2003
35
US
Could a radio button when selected be associated with a text box?
Ex: radio button "other" , text box "other" (w/multiple lines for extra comments)

I am using Html and saving the information to a database table.

Thanks in advance :)
 
You'd need either JavaScript or VBScript to do the assignment of the value. The code is not difficult. The hard part would be deciding on your actual implementation model.

If you have a multiline text box (<textarea></textarea>) and you are using the radio button to insert text. Where abouts do you insert the text? At the top? At the bottom? Somewhere in the middle?

What happens to the text that is already typed into the box?

I'd presume you'd have more than one radio button adding different chunks of text. What happens if the user selects one and then changes his or her mind? Do you erase the existing text before adding the new text?

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top