Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle text jquery

$("button").click(function(){
  $(this).text($(this).text() == 'Show' ? 'Close' : 'Show');
});
 
PREVIOUS NEXT
Tagged: #toggle #text #jquery
ADD COMMENT
Topic
Name
5+5 =