Mootools set radio button checked
Posted
by Gobi
on Stack Overflow
See other posts from Stack Overflow
or by Gobi
Published on 2010-04-06T07:01:14Z
Indexed on
2010/04/06
7:13 UTC
Read the original article
Hit count: 519
mootools
|JavaScript
Hi
i have 2 radio buttons
and i used mootool while loading as
window.addEvent('domready', function() {
var chk="1";
if(chk==1){
$('edit-gender-0').set('checked',true);
}
else if(chk==2){
$('edit-gender-1').set('checked',true);
}
but its not working at all.
any one help me will be more appreciated... and anyother short way without if condition
© Stack Overflow or respective owner