Prześlij formularz za pomocą jQuery / Javascript bez ignorowania tagu „required”
więc mam następującą formę:
<form action="register.php" method="post" id="register-form" name="register-form">
<input type="text" id="username" name="username" placeholder="Username" autofocus="autofocus" required />
<input type="text" id="password" name="password" placeholder="Password" required />
<a href="javascript:void(0);" class="btn" onclick="$('#register-form').submit();">Register</a>
<input type="submit" style="display: none;" />
</form>
Co chcę wiedzieć, czy istnieje sposób, aby jQuery zadbał o „wymagany” tag podczas przesyłania formularza? W tej chwili tak nie jest.