Monday, 5 January 2015

jQuery add new element

newDiv = $("<div>", {class: "Timer", id:oId});
newDiv.css("visibility","hidden");

TimerHTML = '<div class="WhitePatch"></div>';               

newDiv.append(TimerHTML);

No comments:

Post a Comment