aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Add row functionality in Jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Add row functionality in Jquery" Watch "Add row functionality in Jquery" New topic
Author

Add row functionality in Jquery

Sajin Balakrishnan
Greenhorn

Joined: Feb 21, 2012
Posts: 11
Hi,

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

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

Where is your code? You see to have forgotten to post it. What problems are you having with it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sajin Balakrishnan
Greenhorn

Joined: Feb 21, 2012
Posts: 11


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

Joined: Nov 06, 2012
Posts: 297
    
    5

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?


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
 
 
subject: Add row functionality in Jquery