I have some code bound to the blur() event in jQuery:
$('input[type="text"]').blur(function () {
... some code ...
});
Is there a way to invoke this same code from another function in my javascript? Or, do I need to separate this code from the event binding in order to reuse it?
You can use
.triggerto call the event.For example: