When using slideToggle, how to change the Text close/show? I did a simple one, but cannot get the text change back.
slideToggle
Here is what I did:
Not the prettiest of methods, but it does the job in a single statement.
$(this).text(($(this).text() == 'Close') ? 'Show' : 'Close');