$('.showlink').click( function() {
$('.box').slideToggle(300);
});
.box {
display:none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="showlink">click</div>
<div class="box">content</div>
I have my code like this and I want to change the word 'click
' into 'click again'
that's in the first div after clicking on it, but I don't know how to achieve this?