javascript add element realtime code example
Example 1: create element javascript with id
var btn = document.createElement('div');
btn.setAttribute("id", "div1");
Example 2: event after div created
$(function($) {
$('.div_element').on('load', function() {
$('.textbox').hide();
}());
});