Following is my javascipt function which i want to call when user click on submit kindly let me know how can i make that call????
<script type='text/javascript'>
$(document).ready(function(){
function(e){
//stop the form from being submitted
e.preventDefault();
}
</script>
<input class="bttonn1" type='submit' onClick="" id='send_message' value='Send The Message'>
Use the
submitevent on theformelement, notclickon the submit button.(And your code is incomplete, you’re missing the closing
}on the handler function, the closing);on the call toclick[which you’d change], the closing}on thereadyhandler, and the closing);on the call toready.)