How can I use the adjacent "+" selector with $ (this).
I need help with commented out lines with // this doesn't work:
$(".ExpandCollapse").click(function () { if ($(this).nextUntil('.Collapsable').is(':visible')) { //this doesnt work $(this + ".Collapsable").hide(); } else { //this doesnt work $(this + ".Collapsable").show(); } });
Could you give me a hand?
Thank you very much in advance.
Best wishes.
Jose
javascript jquery
Sosi
source share