Use .scrolltop() when form is valid?

Use .scrolltop() when form is valid?

Hi all!

I want to create this jQuery syntax that triggers the .scrolltop() function if a form is valid. If the form is not valid, I don't want anything to happen. So basically when a visitor have the right zipcode for delivery, I want them to be scrolled down to another form. Ok?

I don't know the scrolldepth yet, but will figure this out while I have a decent syntax to work with.

The ID of the form is # zipcheck-fieldset and the class of the submit-button is .check-zip-code. (I don't know which on to use)

I tried for hours now but it won't work

Thanks in advanced.

Jonathan