I have a blur function already attached to my dropdown, now I want to call another function onchange after my blur function is called in javasript.
<select onchange="CheckAccommodation(this)" onblur="return UpdateFormSelect('UpdatePrice.aspx', 'BookNow_accommodation1', 'select', 'BookNow_accommduration');javascript:test()" id="BookNow_accommodation1" name="BookNow:accommodation1">
Now I want to call my javascript:test() after the blur is done
Please suggest!
Thanks.
Best Regards,
Yuv
Then just remove the ‘return’ on the first statement, allowing it to fall through to the second:
You could put
return test(), but actually onblur doesn’t need to return anything.<a onclick>often needs toreturn falseto stop the link being followed, but other than that you often don’t need any return value from an event handler.It’s also a bit of a mouthful to put in an event handler. You might benefit by breaking the JavaScript out: