I have a form which already validates via PHP (but it's too complicated to edit).

I want to restrict an email text field, so that the user must enter a .edu email address. But it could be .edu or .edu.au or whatever. So if the code could just search the string for ".edu" anywhere inside would be good.

I am clueless when it comes to Javascript, could someone please kindly whip up some code?