$('.someClass').filter(function() { return $(this).attr('value') == $('input#someId').val();});//该片段来自于http://www.codesnippet.cn/detail/27112012680.html
来源: http://www.codesnippet.cn/detail/27112012680.html