The one form has the class inputboxmodal1
and the other one inputboxmodal2
, but you’re only listening to blur events for the 1st. Try changing the selector to
$(".inputboxmodal1, .inputboxmodal2").on(/* etc */)
or give your form containers a generic common class (e.g. just inputboxmodal
).