.filter 是你需要的: $(this).siblings().filter(function() { return $(this).width() === 400; }).dosomething(); JSFiddle Example