• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add row functionality in Jquery

 
Sajin Balakrishnan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

A row should appear after add button is clicked for both parent and child.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your code? You see to have forgotten to post it. What problems are you having with it?
 
Sajin Balakrishnan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Refering to the above code, i want to achieve add row functionality.
Parent can also be added mutiple times and with in each parent there can be many childs.
if i do add parent element id's/name's should increase by 1.
for eg:if i add parent
new row with text and select with ids parent[1].test and parent[1].test1 should appear.
With in this parent if i do add child then
new row with text and select with ids parent[1].child[0].test and parent[1].child[0].test1 should appear.

 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You still have posted no code, you've just posted markup. If you want your page to do stuff in response to clicks and so on then there needs to be some JavaScript somewhere. Do you have any JavaScript?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic