www.webdeveloper.com
Results 1 to 3 of 3

Thread: problem when clone - id

  1. #1
    Join Date
    Jul 2010
    Posts
    15

    problem when clone - id

    hi

    i have this http://jsfiddle.net/xP9Bx/ that wotks well

    now i am trying to change `<input id="input1" />` to `<div id="input1"> </div>` http://jsfiddle.net/J7sMr/.

    The problem is the id, it is supposed change, like input1, input2, but in the second example the new divs always have the same id.

    In the first example the name of the id's are input1, input2, input3,...

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Is this JQuery? Prototype? MooTools, Google API? Yahoo API? Other JavaScript library? Should we guess? It looks to be JQuery, but you should used yourself to specify that from the very beginning of the post, if you want a fast solve.

  3. #3
    Join Date
    Jul 2010
    Posts
    15
    is just change text: to div

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles