I have the following code ..
$("#input_name").blur(function(){
//more code
});
It works fine, but now I need to invoke the same functionality as in the blur function above by clicking a button as well. Basically, I want to keep the blur as is, and add the onclick. Any ideas how do I do that?
Thanks
Change your function definition to not be inline and then reuse it.