I have a problem with the jQuery attribute starting with selectors [name^="value"]. below is what i am trying to do
var parentContainer = $('#myparent');
$.each(parentContainer.find('*[name^="a[2].b[0].c"]'), function(){
alert('Hi');
});
Although the parent Container has elements with a name starting with a[2].b[0].c, it still fails to warn "Hello."
But when I try to do it as below, it works
var parentContainer = $('#myparent');
$.each(parentContainer.find('*[name^="a[2].b"]'), function(){
alert('Hi');
});
need ur help thanks in advance
source
share