Hi! I don't know much about Java and I'm new to JQuery.
I want to replace "+ Table" for "- Table" when the user clicks on it.
For that I've used:
$(document).ready(function () {
$('#table1_head').click(function () {
$('#button1 a').replaceWith('- Table1');
});
});
It worked. But I want to replace "- Table" back for "+ Table" when the user clicks on it again. How can I do that?