How can i use appendTo and insertBefore properly

Posted by Opoe on Stack Overflow See other posts from Stack Overflow or by Opoe
Published on 2011-01-10T14:52:34Z Indexed on 2011/01/10 14:53 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

hi all!

With the append button i add elements to the same class. I want the append button and delete button beneath the appended elements, but when i use insertBefore, the Toggle function only toggles the buttons visibility.

You can check out what i mean here;

click add a box and start appending

http://www.jsfiddle.net/myd3k/

replace appendTo with inserBefore and toggle the visibility.

Thanks in advance

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about insert