SyntaxFix
Write A Post
Hire A Developer
Questions
You do like this. the function return the old text.
$('button').click(function(){ $(this).text(function(i,old){ return old=='Read More' ? 'Read Less' : 'Read More'; }); });