InterviewSolution
Saved Bookmarks
| 1. |
How to translate a set of values to another set? |
|
Answer» There are two WAYS to stop a form
The sample CODE: <script> function formSubmit(){ return false; } </script> <form onsubmit="return formSubmit();" >The sample code: <form> <button class='.submit' type="submit">Submit</button> </form> $(function(){ $('.submit').on('submit', function(event){ event.preventDefault(); }); }) |
|