I was just doing this not a half hour ago: Assuming that "this" is the checkbox you clicked,
jQuery(this).parent().siblings().find("input:checkbox").not(this) Worked great for me! I used the following code to achieve the effect I believe you're searching for (radio button-like functionality made out of checkboxes, so you can easily turn go back to none selected): jQuery(document).ready(function() { jQuery("input:checkbox").click(function() { jQuery(this).parent().siblings().find(":checked").not(this).uncheck(); }) }) jQuery.fn.uncheck = function() { this.each(function(){ this.checked = false; }) } On 1/11/07, jazzle <[EMAIL PROTECTED]> wrote:
That title may not make much sense, so here's the code: <tr id="<?= $player['id'] ?>"> <td><input type="checkbox" name="seventeen[apps][<?= $player['id'] ?>]" class="noneorone" /></td> <td><input type="checkbox" name="seventeen[subs][<?= $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/
-- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/