I'm new to web development and came across the following problem. I have an input text and a button in html and I need to create an action that when clicking the button, a function is called and in the function, I will make the necessary manipulations. Below is my code.
<!-- FILTRO FLUTUANTE -->
<div id="mws-themer">
<div id="mws-themer-hide"></div>
<div id="mws-themer-content">
<form action="fornDetails.php">
<div class="mws-themer-section">
<form action="" name="myForm" id="myForm" style="padding: 0; margin: 0;" method="POST">
<input type="submit" name="edtMFIR" id="edtMFIR" value="filtrar" class="mws-textinput error">
</form>
</div>
<div class="mws-themer-separator"></div>
<div class="mws-themer-section">
<button class="mws-button red small" id="mws-themer-sendfilterPCD">Filtrar</button>
</div>
</form>
</div>
</div>
How to solve the problem?
In addition to HTML, there are codes in php and javascript.