I have a list of elements, in a “that” variable.
How can I find a element with a specific attribute inside these?
(function( $ ) {
$.fn.blah = function(){
var that = this;
return this.each(function(){
$(this).bind('change', function(){
$("[name]", that).dostuff(); // <- doesn't seem to work
return true;
}).change();
});
};
})(jQuery);
The
.filter()help method should do it: