I am having an issue with JQuery attribute starts 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');
});
Though the parentContainer have the elements with name starts with a[2].b[0].c
still not able to alert 'Hi'.
But when i try to do it as mentioned below it works
var parentContainer = $('#myparent');
$.each(parentContainer.find('*[name^="a[2].b"]'), function(){
alert('Hi');
});
need ur help. Thanks in advance