javascript - Displaying text as soon as a radio button is clicked, dynamically -


i have bunch of radio buttons. each correspond number 1 - 24. want display number somewhere else in page radio button selected. how this?

you create div id "displaynum", "display:none" style property

then create "onclick" handler radio buttons.

the function called handler figure out button clicked (from button's id) , change content of "displaynum" div number (using innerhtml property of div), change "display" property of div invisible "none" visible "block".


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -