got a somewhat complex question.

I'm about to do some a form where a user is requested to put in name/email/number of nights/student&nonstudents information. Although this is not the problem.

My problem here is that I want that if a errormsg appears (say if a user types in a invalid email) it should appear in a hidden <div> and not in the more usual alert pop-up.

I basically have no idea how to come around this or how to link the error msg to the hidden div. I've looked through the hidden div technique with JavaScript but I've yet to find something that fit's here.

well if anyone knows I would love to see a respons

thanks in advance and a happy new year on ye all