August 30th, 2010, 06:30 AM
Add row to table by button
Basically, i have a table, each row represents a certain item
Currently i have a button below that table that leads me to another page -
my question is, how can i just add a new row to the table itself?
August 30th, 2010, 10:04 AM
Re: Add row to table by button
If I understand you correctly, you want to manually add rows to an HTML table? Or is this a JSP with dynamic rows using JSTL or EL expressions?
If it is an HTML table just add another <tr> element to add a row. If it is dynamic, you will have to go to the servlet creating the data and add another element there.
This is really the wrong place for this question, it should probably be moved to the client side scripting forum for future reference.
Please do some reading on HTML tables at W3C
Click Here to Expand Forum to Full Width