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:
Use .toggle()
Here is Working Demo
$('.open').click(function(){ $('.showpanel').slideToggle('slow'); }).toggle(function() { $(this).text('Hide'); }, function() { $(this).text('Show'); });