Im looking for a simple solution to stop the registration form from sending empty input fields. The code for the form is shown below. I would like to use a simple Javascript soluiton if possible.
<form id="login" method="post" action=""> <input type="text" name="email" id="email" /> <input type="password" name="pwd" id="pwd" /> <button type="submit" id="submit">Login</button> </form>
If possible, I would also like to change the border of the empty field (s).
Thanks in advance.
javascript login forms user-input
Brad birdsall
source share