hello,
try this :
        window.addEvent('domready', function(){ 
  // your code
   });


On Wednesday, October 24, 2012 9:58:47 AM UTC+2, 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
>  
>

Reply via email to