I would like to ask how you can remove the value of the searchbar I thought of using jQuery, and javaskyting . This is my code that looks like this.
& lt; Script type = "text / javascript" & gt; Function searchbarclaim {document.getElementById ('searchbar'). Value = ''; } & Lt; / Script & gt; & Lt; Input type = "text" name = "searchbar" value = 'search ...' onclick = 'searchbarclicked' & gt; & Lt; Input type = "submit" value = "search" name = "search" & gt; & Lt; / Br & gt;
Thank you in advance
You can use it
& lt; Input type = "text" name = "searchbar" placeholder = "search ..." & gt;
Comments
Post a Comment