Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to find the selected radio button immediately using the this variable?
How to find the selected radio button immediately using the 'this' variable?
✍: Guest
<script>
function favAnimal(button) {
alert('You like '+button.value+'s.');
}
</script>
<input type="radio" name="marsupial" value="kangaroo"
onchange="favAnimal(this)">Kangaroo
<br /><input type="radio" name="marsupial" value="Opossum"
onchange="favAnimal(this)">Opossum
<br /><input type="radio" name="marsupial" value="Tasmanian Tiger"
onchange="favAnimal(this)">Tasmanian Tiger
2008-12-09, 4566👍, 0💬
Popular Posts:
What’s the difference between Unit testing, Assembly testing and Regression testing? Unit testing is...
What Is a TD Tag/Element? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells A "td" elemen...
How can a servlet refresh automatically if some new data has entered the database? You can use a cli...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...
How can we know the number of days between two given dates in PHP? Simple arithmetic: <?php $...