I am looping through radio buttons to see which is checked, and trying to assign a variable to use in the jQuery transition function:
- function animate()
- {
- var action = "";
- for (i = 0; i < 9; i++)
- {
- if (form1.jQ[i].checked) action = form1.jQ[i].value;
- }
- $( "div" ).action();
- }
However, jQuery will not accept
$( "div" ).action(); It will only accept literals such as
$( "div" ).show(); or
$( "div" ).hide(); Is there a way I can use a variable here?
Also, is there a preferred way to call the transition functions?
Obvious jQuery newbie, thank you!
23