I have piece of function which I am trying to call at two different places and so am thinking to put it inside a function and call that function at two different places.
I am not sure how this can be done using jQuery:
Any Sample examples would be appreciated ?