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 -
<input type="button" value="Add" onClick="javascript:window.location='add_item.jsp';">
my question is, how can i just add a new row to the table itself?
thanks
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.
Bookmarks