w*s 发帖数: 7227 | 1 hi i'm new to these.
so i have 2 radio buttons, "choice 1", "choice 2".
when i choose 1st, i want to see text box message saying "you choosed 1".
same for the 2nd radio.
Any sample pls !
Thanks ! |
w****w 发帖数: 521 | |
l**********n 发帖数: 8443 | |
d****i 发帖数: 4809 | |
w*s 发帖数: 7227 | |
w*s 发帖数: 7227 | 6 Why it's not working for me, any suggestions appreciated.
js1.js----------------------------------
function button_click()
{
document.querySelector("#msg').innerHTML = 'You chosed' + document.
querySelector('input[name="choice"]:checked').value + '.';
}
my.html----------------------------------------
Raido
|