<ul class="xyz">
<li data-et-id="p">
<li data-et-id="A">
...
..
...
<li data-et-id="m">...
...
...
</ul>
I tried $('ul.xyz li[data-et-id=A]'). This works but
here's what I'm trying to do .. I have a page with many <ul>. Within each <ul> tag I have <li>. Now when I hit load more , the next set of <ul> gets loaded on the page. I am trying to use the selector above to filter <li> with id="A" in all the <ul> with classname=xyz. When load more is clicked, it's an ajax call which loads more content each time it's clicked.
The question is that , though the selector works, it filters out the <li> with data-et-id=A which is there on the page but does not show the <li> with data-et-id="A" which appear after the load more button is clicked.