$(".add-remove-bookmark").click(function(e) { if ($(this).html() == "Add Bookmark") { $(this).html('Remove Bookmark'); } else { $(this).html('Add Bookmark'); } });
Standard input is empty
Standard output is empty
js: uncaught JavaScript runtime exception: ReferenceError: "$" is not defined.