java - Show alert when form submitted -
İ have form. when user click submit button, want show alert , submit form.
here code sample.
<form action="domakeapplication" method="post"> <td> <button class="btn type7 color1" type="submit" id="makeapplication" onclick="makeapp();return false" >başvur</button> </td> <input type="hidden" th:value="${jobadvert.company.companyname}" name="companyname" ></input> <input type="hidden" th:value="${jobadvert.company.id}" name="companyid" ></input> <input type="hidden" th:value="${jobadvert.id}" name="advertid" ></input> </form>
this should trick:
<form action="domakeapplication" method="post" onsubmit="alert('you submitted form');">
Comments
Post a Comment