• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Add row functionality in Jquery

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic