Use jQuery .siblings() to select the matching sibling.
$(this).siblings('.bidbutton');
// Sibling with class name
$(this).next( ".someClassNameOfSibiling" ).css( "display", "none" );
// Full code for for h3 element on click
// hide the sibling div element
$(document).ready(function(){
$("h3").on("click",function() {
$(this).next( "div" ).css( "display", "none" );
})
});
$(myContextNode).siblings("span.myClass")