Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in below code i require only inner child value
UL > LI > UL > LI checkbox value for all selected checkbox

Please help for solve this issue ??
HTML
<ul>
  <li>
    <input type="checkbox" value="FirstParent" />
    <ul>
      <li>
        <input type="checkbox" value="FirstChild" />
      <li>
      <li>
        <input type="checkbox" value="SecChild" />
      </li>
    </ul>
  </li>

  <li>
    <input type="checkbox" value="SecondParent" />
    <ul>
      <li>
        <input type="checkbox" value="SecondFirstChild" />
      <li>
      <li>
        <input type="checkbox" value="SecondSecChild" />
      </li>
    </ul>
  </li>
</ul>

How i get FirstChild,secChild,SecondFirstChild,SecondSecChild value not parent value
Posted
Updated 29-Oct-13 23:15pm
v2
Comments
bbirajdar 30-Oct-13 6:32am    
Show your efforts

1 solution

I have created one Demo. Check if you needed this.
[Demo] Get Child CheckBoxes[^]

Note: I have added one class(check) to the parent ul.
 
Share this answer
 
Comments
IpsitaMishra 30-Oct-13 7:51am    
+5 to Tadit for nicely expained demo :)
Thanks a lot Ipsita... :)

I guess you have forgot to give the 5+. :P
IpsitaMishra 30-Oct-13 8:15am    
opps..Now your a/c is credited :P
Ha ha :D :D Thanks. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900