http://tetlaw.id.au/view/javascript/...eld-validation


Bear with me please, I'm know no javascript.

I believe I've followed everything except for knowing where to put:

Code:
<script type="text/javascript">
     new Validation('form-id'); 
</script>
Does that go in the <head> of my document? Or not? It also says that "he basic method is to attach to the form's onsubmit event" but in the examples and demo I don't see an onsubmit event so I have no idea how to duplicate that.

Like I said, these two areas are the only two I'm a little fuzzy on. I DID download the files and uploaded the two javascript libraries (prototype/validation) to my server and I'm making sure that I use the correct class for each input field.

Any advice would be great!