Jump to content

Find Out The Parent Number


gurpreetkaur
 Share

Recommended Posts

Hi GuysI am working on a project. where i am storing some data with coresspoding their codeexamplecode description100 XYZ100.01 ABC100.01 a LMN101 YAGH101.02 XYZ101.02a PQRthis is where i storing data,. its finenow at display time, i want to show only parent numbers like 100, 101, which has no parent node(self parent), and on the click of their checkbox, i want to show the sub/child numberscan any one plz help meTHANKS IN ADVANCE

Link to comment
Share on other sites

How much experience do you have programming? You'll need to store everything in a database, and you can either use ajax to send requests for the children of a certain item, or have a recursive function that prints everything in Javascript and use the Javascript data structure to find the children. Neither of those techniques are going to be very easy for a beginner though, but we can help you get started.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...