I have a div which collapses clicking on a text header. I want to change the header from "+ filters" to "- filters" accordingly (when the div is collapsed or expanded)
How can I perform this with jQuery:
if (headerDiv.text() starts with "+")
replace "+" with "-"
else
replace "-" with "+"
?