I have a form in my jsp file, say :
<form action="/business/login/user" id="loginForm" method="get">
..............................
..............................
<input type="submit" onclick="doLoginSubmit();">
Inside my <script>
tag, i have a function called doLoginSubmit. So what will happen when i click my submit button? Will it go to controller directly or my java script function?
Is there any way that i could change the form action to another from javascript?