wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Add row functionality in Jquery" Watch "Add row functionality in Jquery" New topic

Add row functionality in Jquery

Sajin Balakrishnan

Joined: Feb 21, 2012
Posts: 11

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

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

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
Ranch Hand

Joined: Nov 06, 2012
Posts: 295

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Add row functionality in Jquery
Similar Threads
Cannot find ActionMappings or ActionFormBeans collection
ArrayList size using JSTL
JSP to export excel not working in Mozilla Firefox browser
jstl mapped properties
How can I set a form name in a jsp page using <html:form> tag ?