automatic focus of search bar
This commit is contained in:
parent
f10cd8d3fe
commit
9acb68d457
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ error_reporting(E_ALL);
|
|||
|
||||
<div class='box search-container'>
|
||||
<form action="./">
|
||||
<input type="text" placeholder="Search.." name="q" value="<?php if (isset($_GET['q'])) {echo htmlspecialchars($_GET['q']); } ?>">
|
||||
<input type="text" placeholder="Search.." name="q" value="<?php if (isset($_GET['q'])) {echo htmlspecialchars($_GET['q']); } ?>" autofocus>
|
||||
<button type="submit"><i class="icon-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue