How could i use the adjacent selector "+" with the $(this).
I would need a help with the commented lines with //this doesnt 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?
Thanks a lot in advance.
Best Regards.
Jose
Use next()
$(this).next(".Collapsable").hide();
Or simply:
$(this).next().hide();
                        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