When In a PHP form I fill a field, an onBlur event validates this field and if an error occurs the my_alert function is displayed.
This is the part of the code that runs my_alert function.
$params = array(
'title' => "Attenzione",
'type' => "error",
'width' => '350px',
'confirmButtonText' => 'OK');
$desc="The field cannot be empty";
So far everything is ok; the my_alert function work fine.
The problem is that it doesn't work: the focus always goes to the next field.
However, if I remove my_alert, this does not happen.
Can someone help me?
Thank You and Best Regards