English 中文(简体)
特殊甄选
原标题:Jquery special selection

我的法典如下:

<div class="Radios">
     <span class="radio">
          <input type="radio" value="1"> yes
          <input type="radio" value="0"> no
     </span>
</div>
<div class="More">hello</div>
<div class="More">hello</div>

<div class="Radios">
     <span class="radio">
          <input type="radio" value="1"> yes
          <input type="radio" value="0"> no
     </span>
</div>
<div class="More">hello</div>

<div class="Radios">
     <span class="radio">
          <input type="radio" value="1"> yes
          <input type="radio" value="0"> no
     </span>
</div>
<div class="More">hello</div>
<div class="More">hello</div>
<div class="More">hello</div>

违约时,应当隐藏所有与班轮相干的iv。 I use$ (div.More ).hide()

困难的是,当用户在价值1的无线电台上点击时,所有散射线都是如此。 接下来的兄弟姐妹们将四分五裂。 无线电台应显示(但只显示中位的兄弟姐妹,而不是所有电离层)。 更多。

直到现在,我有一个点子的母子被点击,但不能选择下一个小块。 直至下半年。 广播电台。

你们能否给我一手?

最佳方面。

何塞

最佳回答

www.un.org/Depts/DGACM/index_french.htm 直至下半年。 广播电台:

http://api.jquery.com/next Until/“rel=“nofollow noreferer”>next Until(:

$( input[type=radio][value=1] ).click(function () {
    $(this).parents( .Radios ).nextUntil( .Radios ).show();
}
问题回答

页: 1 你点击的投入从你所关心的“Radios”的父母中分出2级。

因此,你想在你做任何事情之前,能够让该父母去做:

$("[type=radio]").click(function(){
   var realParent = $(this).parents(".Radios");
});

既然你有母子,你可以很容易地获得假肢和假肢:

$("[type=radio]").click(function(){
   var realParent = $(this).parents(".Radios");
   realParent.next().show();
   realParent.prev().show();
});




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签