I have this form which is in HTML
<form id="myform" action="handler.php">
<input id="username" />
<input id="password" type="password" />
<button id="login">Login</button>
</form>
I would like to submit this form without using jquery, How do I do this?
also, I have the following code which needs to run before submit...
function validate(){
return username.value && password.value;
}