|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I have two radio buttons.I want to show some data on clicking one radio button and some other data on clicking another radio button.Is it possible using <div> tag
|
|
#2
|
|||
|
|||
|
Here's the quick and dirty way to do it.
Code:
<input type="radio" name="someName" onclick="document.getElementById('IDofDIV').style.display=' none';document.getElementById('IDofDIV2').style.di splay='block';">
I suggest you read these: The Behavior Layer Separating behavior and structure Behavioral Separation Unobtrusive JavaScript DOM Scripting - Sample chapter: Best Practices Accessible DHTML |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > How to show different text data in webform using different radio buttons |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|