Good day. There is a div whose height is 100% with ID container. BODY and HTML height is also 100%. But when adding elements via jQuery using the .append () method, they simply crawl out of the frame of the container. The container does not increase in height.
<body> <div id="container" align="center"> <span> <input type=text id=opt_0 class=additional> </span> </div> </body> </html> JQuery $(document).ready(function(){ ifIssetAddForm();}) ifIssetAddForm(){ if($('.additional').length>0){ $('.additional').keyup(function(event){ if($(this).val()!=''){ var edID=(this.id.replace(/\D/g,''))*1; if($('#opt_'+(edID+1)).length<=0){ var main_elem=$('#opt_'+edID).parent(); var new_elem=$(main_elem).clone(); var new_input=$(new_elem).children('input'); edID++; $(new_input).removeAttr('id').attr('id','opt_'+edID); $('#container').append(new_elem); }