I am trying to have my button display the word less when it is clicked and more when it has not been clicked.
my jquery is shown below
$("#read_more").click(function() {
$("#large").toggle();
});
if ($("#large").is(":visible")) {
$("#read_more").val("less")
}
else {
$("#read_more").val("more")
}
});
Would I need to add an on toggle event somewhere?
Thanks in advance, D