[Solved] automaticly insert text in input [duplicate]


Add focus to your input by below line.

document.getElementById('search').focus();

See Demo

document.getElementById('search').focus();
<input id="search">

solved automaticly insert text in input [duplicate]