Results 1 to 2 of 2
  1. #1
    tamilram is offline Member
    Join Date
    Mar 2014
    Rep Power

    Default cloning method in jsp

    how can use cloning in jsp... i try to display the text box after clicking the radio button.... but when i click the yes button the text box will display again and the user can enter new values..... i want to repeat the same process until then i click no button.... after click the no button the submit button will display... please solve my issue... i am using javascript
    Last edited by tamilram; 03-10-2014 at 12:19 PM.

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: cloning method in jsp

    I hope you realize that this is a Java forum and not a Javascript forum. Your question has nothing to do with JSP and/or servlets.

    As for your issue, start looking into jQuery. It has wonderful methods to manipulate the DOM. To get you started, this is what it sort of would look like (untested):
    Java Code:
    var textbox = "<input type=\"text\" />";
    var counter = 1;
    $("#yes-button").click( function() {
       var $myTextbox = $(textbox);
       $myTextbox.attr('name', 'text' + counter);
    Last edited by SurfMan; 03-10-2014 at 12:16 PM.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Cloning problem
    By guilty in forum New To Java
    Replies: 4
    Last Post: 11-14-2010, 07:06 PM
  2. Cloning issue
    By Paul Richards in forum Advanced Java
    Replies: 2
    Last Post: 08-27-2009, 12:29 AM
  3. Help with Deep Cloning
    By jralexander137 in forum New To Java
    Replies: 6
    Last Post: 10-30-2008, 06:34 PM
  4. Cloning objects
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-04-2008, 10:33 AM
  5. Cloning in Java
    By gchalpatirao in forum Advanced Java
    Replies: 0
    Last Post: 08-14-2007, 04:29 PM

Posting Permissions

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