Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I want to display a DIV , when a radiobutton is clicked... how ?

Guest
Aug 06, 2009 Aug 06, 2009

how do I achieve it ? I found some examples googling around but none works good yet... please help..

TOPICS
Server side applications
393
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 06, 2009 Aug 06, 2009
LATEST

Hey hey ! I did it !

Here one way just if someone is interested :

Insert into the body

TEXT BEFORE BLOCK<br>


<input type="radio" id="accept" onclick="document.getElementById('house').style.display = 'block', document.getElementById('decline').checked = 0"> I ACCEPT<br>
<input type="radio" id="decline" onclick="document.getElementById('house').style.display = 'none',document.getElementById('accept').checked = 0"> I DECLINE<br>


<div id="house" style="display:none">
Good, Accepted !!!. <br>
Second line bla bla bla

</div>

<br>
text after block comes here....

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines