Currently using Bootstrap, I have a search form and a modal in my project. My goal is to have the modal open when clicking on the search form, rather than having it triggered by a button as most online resources suggest. Is there a way to achieve this functionality where the modal opens with an input form click?
My search through Bootstrap's documentation led me here: https://getbootstrap.com/docs/4.0/components/modal/
https://i.sstatic.net/WxOVx.png
Sample of my search form code:
<div class="input-box">
<input type="text" class="form-control">
<i class="fa fa-search"></i>
</div>