return - Javascript creating a new line on the html page? -


i have javascript function prints textboxes when user clicks button.

however when user clicks buttons multiple times textboxes go along page want on new line every time function called.

i tried this

x=document.write ('<br/>');            document.getelementbyid('txtara').appendchild(x) 

but clears page blank white.

thanks

document.getelementbyid ('txtara').innerhtml += '<br>'; 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -