Advanced title, simple question:
How can I do the following in jQuery (hiding everything except $(this)
)?
$("table tr").click(function() { $("table tr:not(" + $(this) + ")").hide(); // $(this) is only to illustrate my problem $("table tr").show(); });
$(this).siblings().hide();
Traversing/Siblings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With