Form submit sample(maully)

how to trigger form submit?

by camel2243

HTML

<form 
  id="login-form" 
  onsubmit="alert('onsubmit'); return false;">
  username: <input type="text" name="username">
  <input 
   type="text" 
   name="hidden" 
   value="hidden" 
   style="display: none;" 
  />
</form>