2008-04-17

用prototype 方法$A() uncheck radio button

关键字: prototype radio button
做无刷新页面的时候,会碰到无法从服务器取list的size,每条list都有一个radio button, 这时候想uncheck所有radio的时候,可以用prototype方法来完成遍历:
<input type="radio" name="selectedGrie" value=''>  


   var idxs=$('selectedGrie');
   var nodes=$A(idxs);
   nodes.each(function(node){
   	node.checked=false;
   	//alert(node.value);
   });
评论
发表评论

您还没有登录,请登录后发表评论

darkjune
搜索本博客
我的相册
45a46d56-bef4-4041-ba1f-3dbf35966fe7-thumb
siebel
共 1 张
最近加入圈子
存档
最新评论