I've got a search form on my page, which works perfectly fine when I enter the text and press enter, however it doesn't submit anything when .submit-search
button is clicked, why is that? note: value="2"
is there for specific use.
<form action="<?php echo home_url(); ?>" class="search-form" method="get">
<input class="search-input" type="text" value="Search..." name="s" id="s"
onblur="if(this.value == '') this.value = 'Search...'"
onfocus="if(this.value == 'Search...') this.value = ''">
<input class="submit-search" type="button" value="2">
</form>
placeholder
attribute?type="submit"
instead oftype="button"
?