Add row to table by button
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Add row to table by button

  1. #1
    Join Date
    Aug 2010

    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 -
    <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?

  2. #2
    Join Date
    Feb 2008

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)