Here is my html code.
<div data-value="1">
<div data-items="bind">
<div data-item="Black" />
<div data-item="Orange" />
</div>
<div data-types="bind">
<div data-type="Books" />
<div data-type="Mobiles" />
</div>
<button>button 1</button>
<input type='text'/>
</div>
<div data-value="2">
<div data-items="bind">
<div data-item="Black" />
<div data-item="Orange" />
</div>
<div data-types="bind">
<div data-type="Gifts" />
<div data-type="Cards" />
</div>
<button>button 1</button>
</div>
I have two parent divs that contains data-value "1" and "2".
first:
I want children of div that contains data-value="1". The output should be 4 children 2 div, 1 button, 1 input
second:
I want children of div that contains data-value="2". The output should be 3 children 2 div, 1 button
How is it possible using jQuery's.