[jQuery] Changing the click trigger inside itself is causing undesired results.

2008-03-31 Thread [EMAIL PROTECTED]
I have a button, when clicked this button invokes a function that changes the buttons html, and it's click. The problem is it somehow maintains the old trigger code. Before I put the click functions in their own functions (rather than just adding function(){} to the parameter) it would gain code e

[jQuery] Changing the click trigger inside itself is causing undesired results.

2008-03-31 Thread [EMAIL PROTECTED]
I have a button, when clicked this button invokes a function that changes the buttons html, and it's click. The problem is it somehow maintains the old trigger code. Before I put the click functions in their own functions (rather than just adding function(){} to the parameter) it would gain code e