Hi,
I have been having problems with my jQuery function which should
display the appropriate message when the user selects a certain radio
button. I am trying to achieve this using a conditional statement.
When the user selects the first radio button they should see the
message "test45", if they select the second radio button,
they will see the message "test1".
Here is my code:
- function test(){
-
- if ($("input:checked")){
-
window.alert("test45");
- }
-
- else
if ($("input:checked")){
-
window.alert("test1");
- }
-
- }