Hi.
I was wondering if there's a way, using the server-side validation, to jump to / set focus on the error message that's returned?
atm i have:
to compare the two email fields (femail and cemail), and return that message.
However, if the form is below a bunch of text, then the error message is out of view when the page reloads due to the validation error. So is there a way of setting focus to that error message when the page loads?
cheers
I was wondering if there's a way, using the server-side validation, to jump to / set focus on the error message that's returned?
atm i have:
<?php
global $mainframe;
if ( JRequest::getVar('femail') != JRequest::getVar('cemail') )
return 'Sorry, your email addresses do not match, please check again as this is the only way we have of contacting you!';
?>
to compare the two email fields (femail and cemail), and return that message.
However, if the form is below a bunch of text, then the error message is out of view when the page reloads due to the validation error. So is there a way of setting focus to that error message when the page loads?
cheers