<p class="ishide">
<label class="fleft">
交易点差:</label>
<span class="inputinfo"><span id="ctl00_mainBody_RBLPIP" class="category_checkbox">
<input id="ctl00_mainBody_RBLPIP_0" type="radio" name="ctl00$mainBody$RBLPIP" value="1" /><label
for="ctl00_mainBody_RBLPIP_0">固定点差</label><input id="ctl00_mainBody_RBLPIP_1" type="radio"
name="ctl00$mainBody$RBLPIP" value="2" /><label for="ctl00_mainBody_RBLPIP_1">浮动点差</label><input
id="ctl00_mainBody_RBLPIP_2" type="radio" name="ctl00$mainBody$RBLPIP" value="3" /><label
for="ctl00_mainBody_RBLPIP_2">固定+浮动点差</label></span> </span>
</p>
<p class="ishide">
<label class="fleft">
是否有迷你仓:</label>
<span class="inputinfo"><span id="ctl00_mainBody_RBLMiniSH" class="category_checkbox">
<input id="ctl00_mainBody_RBLMiniSH_0" type="radio" name="ctl00$mainBody$RBLMiniSH"
value="1" /><label for="ctl00_mainBody_RBLMiniSH_0">是</label><input id="ctl00_mainBody_RBLMiniSH_1"
type="radio" name="ctl00$mainBody$RBLMiniSH" value="2" /><label for="ctl00_mainBody_RBLMiniSH_1">否</label></span>
</span>
</p>
大家看下上面两行红色字体是有RadioButtonList生成的两组单选按钮,其中Name属性决定了一组。现在我想通过Jquery来分别点击下去后,返回对应的单选按钮值。但是在一个页面上有2组单选按钮,只能通过Name属性来确定具体返回是哪组单选按钮,
所以Jquery是通过以下格式来获取:
$(":input:radio[@name='ctl00$mainBody$RBLPIP'][checked]").val()但是上面的问题来了。那就是Jquery需要指定单选按钮组的Name属性,我找来找去,只有ClientID来获取ID值,没有办法回去Name属性。1:请问有什么办法获取RadioButtonList的Name属性2:请问还有其他办法让JQuery不通过Name属性,而通过ID属性来获取各自不同单选按钮组的值吗?谢谢了。!~
<label class="fleft">
交易点差:</label>
<span class="inputinfo"><span id="ctl00_mainBody_RBLPIP" class="category_checkbox">
<input id="ctl00_mainBody_RBLPIP_0" type="radio" name="ctl00$mainBody$RBLPIP" value="1" /><label
for="ctl00_mainBody_RBLPIP_0">固定点差</label><input id="ctl00_mainBody_RBLPIP_1" type="radio"
name="ctl00$mainBody$RBLPIP" value="2" /><label for="ctl00_mainBody_RBLPIP_1">浮动点差</label><input
id="ctl00_mainBody_RBLPIP_2" type="radio" name="ctl00$mainBody$RBLPIP" value="3" /><label
for="ctl00_mainBody_RBLPIP_2">固定+浮动点差</label></span> </span>
</p>
<p class="ishide">
<label class="fleft">
是否有迷你仓:</label>
<span class="inputinfo"><span id="ctl00_mainBody_RBLMiniSH" class="category_checkbox">
<input id="ctl00_mainBody_RBLMiniSH_0" type="radio" name="ctl00$mainBody$RBLMiniSH"
value="1" /><label for="ctl00_mainBody_RBLMiniSH_0">是</label><input id="ctl00_mainBody_RBLMiniSH_1"
type="radio" name="ctl00$mainBody$RBLMiniSH" value="2" /><label for="ctl00_mainBody_RBLMiniSH_1">否</label></span>
</span>
</p>
大家看下上面两行红色字体是有RadioButtonList生成的两组单选按钮,其中Name属性决定了一组。现在我想通过Jquery来分别点击下去后,返回对应的单选按钮值。但是在一个页面上有2组单选按钮,只能通过Name属性来确定具体返回是哪组单选按钮,
所以Jquery是通过以下格式来获取:
$(":input:radio[@name='ctl00$mainBody$RBLPIP'][checked]").val()但是上面的问题来了。那就是Jquery需要指定单选按钮组的Name属性,我找来找去,只有ClientID来获取ID值,没有办法回去Name属性。1:请问有什么办法获取RadioButtonList的Name属性2:请问还有其他办法让JQuery不通过Name属性,而通过ID属性来获取各自不同单选按钮组的值吗?谢谢了。!~
解决方案 »
- [百度分享]基于Canvas的热力图绘制方法(二)
- 大家帮我看一下如何切换TAB的代码,
- 我压力很大
- onMouseOver 下拉列表 当光标在页面文本框中的时候,下拉列表不能自动消失? (刚才那个帖子出错打不开了!咋回事儿??!)
- 怎样设置xp iis的在线用户数量,iis运行一段时间后总是down,提示“目前访问网站的用户过多”
- 老大们麻烦看看这个字符串分割,谢谢
- JS用鼠标画线,但如何改变线条的颜色呢?
- 问:如何给表单赋值!
- 请教一个若若的问题
- XP、SERVER上,打印控件WebBrowser为何弹出安全警告?如何屏蔽?
- 通过AJAX的返回的表格,如何选取其中的元素?
- 求助: IE下跳转到锚点后得不到页面卷去的高度
这样行不。利用层级。
.net控件生成的html都是有规律的,还是比较好弄的。