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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -