Something like this?

$('input:checkbox').bind('click', function() {
    $(this).parents('tr').siblings().find('input.noneorone')
});


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 11, 2007, at 8:14 AM, jazzle wrote:


(sorry for edit)
(I meant to add that I don't want to use the ids if possible)

That title may not make much sense, so here's the code:

  <tr id="<?= $player['id'] ?>">
<td><input type="checkbox" name="seventeen[a][<?= $player['id'] ? >]"
class="noneorone" /></td>
<td><input type="checkbox" name="seventeen[b][<?= $player['id'] ? >]"
class="noneorone" /></td>
<td><input type="checkbox" name="seventeen[c][<?= $player['id'] ? >]"
class="noneorone" /></td>
  </tr>

I want to be able to select _none or one_ of the checkboxes (note: not using
radio-buttons).
So I would like to know how to address the _other_ checkboxes (with the
class noneorone) in the same <tr>.

Do I need some XPath mixed with CSS or what?


Thanks in advance for any help.
--
View this message in context: http://www.nabble.com/Select-_other_- elements-%28with-a-specific-class%29-in-same-tr- tf2958743.html#a8277172
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to