RPeraltaJr
6/23/2017 - 3:56 PM

Button text toggle

Button text toggle

<button class="btn btn-default" data-toggle="collapse" data-target="#job">View full description</button>
// NOTE: Button begins with 'View full description' as text in HTML markup
$('section.career button').click(function() {
	$(this).text(function(i, text){
    return text === "Close full description" ? "View full description" : "Close full description";
  })
});