By the following code I wish to \"DO SOMETHING\" on \"ONBLUR\" of element id=\"eg1\" only if the onblur event was not caused due to \"ONCLICK\" on the submit button.
<
A trick - $(document).ready(function() { var flag = false; $('#eg1').blur(function() { flag = true; if(!($("#SubmitBut").click())) { if(flag) return false; //do something } }); });