how to select elements by attrib in container
Hi,
I'm having trouble figuring out how to select elements within a container based on an attribute value.
I want to be able to perform operations like
$.each(('[myAttr="someVal"]', $('#myContainer'), function(){
// do something
});
clear all items with matching attribute value in a container
$('[myAttr="someVal"]', $('#myContainer')).val('');
can anyone help?
thanks
Matt