Blz Galera. I have three buttons inside the same form (register, change and view) and would like to do the actions of the buttons without leaving the page. How can I do this? Some colleagues commented on Ajax. Is there any example?
In case the form looks like this:
<form id="locadora" name="locadora method="post">
<input type="text" name="txt_titulo" size="38" maxlength="30" style="border-radius: 5px;"/>
<select id="txt_categoria" name="txt_categoria" style="border-radius: 4px;">
<option value="Séries">Séries</option>
<option value="Animes">Animes</option>
<option value="Filmes">Filmes</option>
</select>
<select id="txt_audio" name="txt_audio" style="border-radius: 4px;">
<option value="Dublado e Legendado">Dublado e Legendado</option>
<option value="Dublado">Dublado</option>
<option value="Legendado">Legendado</option>
</select>
<input name="visualizar" type="submit" id="visualizar" value="Visualizar"/>
<input name="alterar" type="submit" id="alterar" value="Alterar"/>
<input name="cadastrar" type="submit" id="cadastrar" value="Cadastrar"/>
Thank you