jQuery clone/append creating multiple duplicates -



jQuery clone/append creating multiple duplicates -

i'm attempting duplicate div , append on top of it's clone. unfortunately, seems creating duplicates. what's going on?

here's example: http://jsfiddle.net/qen5n/

live apply new ones class to, getting mouse overs on created elements , it's making , on.

remove searchresultitem class clone changing so.

elem.addclass('created').removeclass('searchresultitem');

or:

disclude created ones. so:

$('.searchresultitem:not(.created)')

either works :)

jquery

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -