Reset a jQuery Function?

Reset a jQuery Function?

How do I reset a function in jQuery?

I have some code.  The code executes, and then when I try to call another if statement in that same function, it will not execute. 

I need to be able to run the function by clicking a submit button, make some changes, and then hit submit and run a different if statement in that same function.

Refreshing the page works, but I don't want my users to have to do that.  Please help!