I have a button and it takes some styles with first click. But I want the user to be able to reset to the original with second click on own button or any button in page.
How can I do this?
my codes
$("#checkButton").click(function() {
$("#checkButton").css("color", "yellow");
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<button id="checkButton">name 1</button>