如何在jquery中从另一个单选按钮列表中查找另一个单选按钮列表的索引? [英] How to chage index of another radio button list from another radiobutton list in jquery?

查看:63
本文介绍了如何在jquery中从另一个单选按钮列表中查找另一个单选按钮列表的索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,

我有两个radiobutton列表,

i有manuaaly为每个radiobutton列表输入两个值。



现在我想要更改第二个单选按钮列表的索引,如果我更改第一个单选按钮列表的索引。我怎么能这样做...在页面源中它显示id为contentplaceholder1_rdofirst_0 / _1



相同的第二个..我怎么能用jquery

Hii,
I have two radiobutton list,
i have manuaaly entered two values for each radiobutton list .

Now i want to chnage index of second radiobutton list if i change index of first radio button list .. How can i do that .. in page source it shows id as contentplaceholder1_rdofirst_0 / _1

same for second .. How can i do that using jquery

推荐答案

尝试这样..

< br $> b $ b

Try like this..


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="jquery-1.10.2.js" type="text/javascript"></script>
    <script type="text/javascript">


function (){


' #RadioButtonList1 input')。change( function (){

var index =
('#RadioButtonList1 input').change(function () { var index =


这篇关于如何在jquery中从另一个单选按钮列表中查找另一个单选按钮列表的索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆