I'm a javascript newbie and have a simple form (one text field) that I need to validate and submit to a dynamic url. The text field can only have one of two values and will redirect the user to one of two urls based on what they enter in the text field:
e.g. enter [code1] in text box and on submit, user is taken to http://somewhere.com/[code1].html
I need to validate the entry in the text box so I'm using the Validator plugin, but I can't figure out how to implement the form submit. It's not redirecting to the url (or anything for that matter.) This is what I've got so far: