Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery issue stack

var newDiv = $("<div />");

newDiv.attr("id", "myNewDiv").appendTo("body");

/* Now whenever I want to append the new div I created, 
   I can just reference it from the "newDiv" variable */
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #issue #stack
ADD COMMENT
Topic
Name
4+7 =