您好,下面是代码,我尝试了很多方法,但无法获得所选单选按钮的值.如您所见,我需要为不同的情况获取该值.
<div style="display: inline-block"><a href="/Login/LogOut">注销</a><span>欢迎 </span>YS User 1 noName </div><br/><br/><br/><br/><table class="MyTable"><thead><tr class="columnHead"><th scope="col"></th><th scope="col"><a href="/User/Index?sort=UserID&sortdir=ASC">CreatedBy</a></th><th scope="col"><a href="/User/Index?sort=CreatedDate&sortdir=ASC">创建日期</a></th><th scope="col"><a href="/User/Index?sort=IsRunning&;amp;sortdir=ASC">正在运行</a></th></tr></thead><tbody><tr><td><输入名称=选择"ID=1"type="radio" value="1"/></td><td>1</td><td>12/12/2011 3:43:57 PM</td><td>假</td></tr><tr class="altRow"><td><输入名称=选择"ID=2"type="radio" value="2"/></td><td>1</td><td>12/13/2011 4:42:37 PM</td><td>假</td></tr><tr><td><输入名称=选择"ID=3"type="radio" value="3"/></td><td>1</td><td>12/13/2011 6:27:38 PM</td><td>错误的</td></tr></tbody></table></div></div></身体></html><脚本类型="文本/javascript">//var value = $$('input[name=selected]:checked')[0].get('value');//变量选择Foo;//$$('input[name=selected]').each(function (el) {//if (el.checked == true) {//selectFoo = el.value;/
相关文章