Hello. I don't normally work in dreamweaver (so I apologize if I'm not explaining the issue correctly) but a co-worker developed an html form in dreamweaver which is having issues submitting.
The form contains javascript validation (which appears to be done in form.js). The validation works correctly, however when I click the Submit button, nothing happens (it should redirect to a different page). If I remove the javascript validation, the page redirects successfully.
Here's the submit button:
<a data-type="submit" class="button" href="thanks.html">send</a>
Has anyone experienced this error before or know of anything in dreamweaver that would prevent a form from being submitted when javascript validation is included?
Thanks.
The code you provided is a simple link to the page thanks.html. As such, there is nothing wrong with it except that a link like that will not pass the data from a form.
"data-submit' is using the new HTML5 developer-defined data attribute. I'm not sure it is used correctly here.
Whether or not the code snippit is correct, the one line you provided isn't enough to see what's going on. You should probably provided the whole code,
A form is wrapped in a submit button, like the code Gramps provided, and a form action pair of tags. The basic structure is like this:
<form action='thanks.html' method='post'>
Your Name: <input name='name' type='text'/>
<input type ='submit' name='submit'/>
</form>
North America
Europe, Middle East and Africa
Asia Pacific