There are lot of reasons why the included file didn't work, and its hard to tell without looking at it. I recommend to use Firebug: Check the Net tab to see if the file was actually loaded.
Jörn On Tue, Oct 14, 2008 at 11:05 PM, Weyert de Boer <[EMAIL PROTECTED]> wrote: > > Hello! > > I am curious how I can add all the validation code in a separate file. > I have put the code in a javascript file then included it. > Only it ain't working then. Do I need to do something special for this work? > > I have like this in the file: > > $(document).ready(function() { > var validator = ....more_code_here... > } > > and then I include in the normal way in the HTML document > > Yours, > Weyert >