I am currently facing an issue with my website. I would like to create a search button using the symbol from fontawesome (
<i class="fas fa-search"></i>
), but I am unsure how to replace the form submission button with this symbol in order to submit the form.
<form id="searchForm">
<div class="search-box">
<input class="search-txt" type="text" name=""
placeholder="Type to search" id="inputBox">
<div class="search-btn">
<input type="submit" value="Search">
<i class="fas fa-search"></i>
</div>
</div>
</form>
Currently, when using this code it displays both the Submit button and the symbol simultaneously.
Your assistance in resolving this matter would be greatly appreciated.