Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form:form id="myForm" action="/success" method="post" modelAttribute="info">
- ....
- </form:form>
- <script>
- $(document).ready(function(){
- $('#myForm').on('submit', function(e){
- e.preventDefault();
- var data = $("#myForm").val();
- console.log(data);
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement