I'm hoping someone can point me in the right direction.

I'd like to have a form that validates on the same page and has the errors come up adjacent to the input fields themselves.

I'm familiar with form validation, but I'm not sure how to go about scripting something like that.

And also I need it to only show the form if either the submit button hasn't been hit at all, or there are errors. Once the form is validated and comes up true, I wand the form to hide and a thank you message to come up.

Are there any tutorials out there on this? I find tons, but only to list error at the bottom of the page, etc...

Thanks.