We've created this problem to evaluate how developers tackle a real-world problem. If you've been assigned this problem you should spend around 2 hours working on it. The last thing we want you to do is toil away for days on end!
If you've stumbled across this and want to work at Springload feel free to submit it too. We might not have anything available but we're always on the lookout for skilled developers.
Included in this repository is an index.html file that contains a form. You must ensure all of the following rules are met before the form is posted to the (in this case imaginary) server:
Emailmust be a valid email address.Passwordmust be longer than 8 characters.Colourmust be selected.- At least two
Animals must be chosen. - If
Tigeris one of the chosenAnimals thenType of tigeris required to be a non-empty string.
If the form is submitted and an error occurs, the error element's parent should have a CSS error class added to it.
<p class='error'>
<label for='field'></label>
<input id='field' type='text' value='foo'>
</p>Please email us a link to your fork of this repository, or a zip or tar.gz of your solution to 1337h4x0r@springload.co.nz.