@public #jquery #javascript #js #next #children

How to find next() button is not disabled, if those are not on the same level

HTML

<div><input rel="first" type="radio" name="x" value="1"></div>
 …
<div><input type="radio" name="x" value="2" disabled></div>
 …
<div><input type="radio" name="x" value="3" disabled></div>
 …
<div><input type="radio" name="x" value="4"></div>

Javascript

$('input[rel="first"]').parent().nextAll('label').children('input').not(':disabled')

/** Big Thanks to http://stackoverflow.com/a/24675347/2099411 **/