5
I have a code that’s basically like this:
<input type="text" value="" onfocus="myFunction(this);" onblur="alert('1');">
<script>
function myFunction(obj) {
obj.onblur = function() {
alert("2");
};
}
</script>
How can I do to run the original onBlur event after the event added by my function?
This here is the link to my full function, so you can better understand my problem: http://jsbin.com/zedot/2/watch?html,js,output
Of course jQuery has many utilities, but include it only to solve this problem would be exaggeration.
– bfavaretto
Just see the problem of using jQuery if you are developing your own javascript library.
– Miguel Angelo