Karl Swedberg wrote:
I agree that a filter function is probably the way to go, but a regular expression within it might be more flexible:

$('something').filter(function() {
    return (/value/i).test( $(this).attr('attribute'));
});

Right. Was that me last week teasing a junior developer for using twenty line of code when a one-line regex would do? :-)

  -- Scott

Reply via email to