Change:
new Form.Validator.Inline($('#create_account'), { 'stopOnFailure':true,
To:
new Form.Validator.Inline( document.id('create_account'), {
'stopOnFailure':true,
On 10/24/2012 3:58 AM, mietzekotze wrote:
Hello guys,
i'm new to MooTools, so I need little help :)
I'm trying to validate a form, for example an email-input, but it
doesn't work. I have following javascript code at the start:
<script>
$(document).ready(function () {
new Form.Validator.Inline($('#create_account'), {
'stopOnFailure':true,
'scrollToErrorsOnSubmit': true,
'useTitles':true
});
});
</script>
and a form with the id 'create_account' and following e-mail-field:
<input type="text" required="" class="required validate-email"
value="" name="email_address">
but it does not validate the mail. if i put for example abcdefg.de or
abc@def, he just submits the form.
Where is my error?
Hope you can help.
Kind regards