How do I select a sibling element using jQuery?
$("h2").siblings().css({"color": "blue"});
Use jQuery .siblings()
to select the matching sibling.
$(this).siblings('.bidbutton');
$(this).siblings(".bidbutton")
$("h2").siblings().css({"color": "blue"});
Use jQuery .siblings()
to select the matching sibling.
$(this).siblings('.bidbutton');
$(this).siblings(".bidbutton")