I'm new to JavaScript and also the JQuery mobile framework is new to me.
I made a small form and after submitting I want to run JavaScript Code to check if all inputs are given. I found a lot of examples how to redirect to php files but I don't understand how I can run the JS Code and use the given input there ...
I tried to redirect to my JS Code using this line:
<form action="#" id="Form" onsubmit="return check()">
I defined the function check() but nevertheless the error message is that the variable check is not found ... Hope someone can help me ...
I tried Ben Lee's approach but I don't understand why this is not working:
$('#Form').submit(function(ev) {
console.log("nice!!");
});
The button:
<input type="submit" value="Send">