How to repeat controls in rows of x?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chibyke
    New Member
    • Mar 2013
    • 2

    How to repeat controls in rows of x?

    Code:
    <table>
    <tr>
    <td>Textbox 1</td>
    <td>Textbox 2</td>
    <td>Textbox 3</td>
    </tr>
    <tr>
    <td>Textbox 4</td>
    <td>Textbox 5</td>
    <td>Textbox 6</td>
    </tr>
    
    <tr>
    <td> Textbox n</?>
    </tr>
    </table>
    How can I achieve this using a button called Add to repeat the controls, and a button called Remove to remove the repeated controls
    Last edited by Rabbit; Mar 31 '13, 06:44 AM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Are you trying to do this in Javascript? Or are you trying to do it in ASP where the page would reload? If the former, I can move your thread to the Javascript forum.

    Comment

    • chibyke
      New Member
      • Mar 2013
      • 2

      #3
      Rabbit, I am using ASP.NET but if you think that it can be done using JavaScript, then that will be good.

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        It can be done in either javascript or asp.net. Which one you want is up to you. This is normally done in javascript so the page doesn't have to relaod. But in the end, the choice is yours. I'm just offering to move it to the javascript forum if that is how you want to do so.

        Comment

        Working...