How to create a search box with input in javascript or jquery -
how can create search box input in javascript or jquery. unfortunately know how in html?. have tried different things , have tried search everywhere ones see in html combined javascript. wanna able in javascript of jquery.
if want create input in js have use createelement method :
// create element var input = document.createelement('input'); // append element tot dom document.body.appendchild(input);
you can append elements in other elements : don't have use document.body everywhere. can create other elements 'div', 'span' etc... using method.
have on that understand dom management in javascript ;)
Comments
Post a Comment