We are trying to link our form's submit button to work as a submit button and function the following Javascript.
Button:
<button type="submit" id="btn_submit" class="button button--red">Sign Up</button>
It works when we remove the id="btn_submit" to submit, but when we add the id="btn_submit" it implements the Javascript. How could we have the one button achieve both functions?
Javascript (beginning):
$("#btn_submit").on('click', function() {
Many, Many thanks!
$("#btn_submit").on('click', function(e) { e.preventDefault(); //do code $('form#myForm').submit();try this way