I am currently working on the following code:
$(document).ready(function(){
$("#FlatCheckbox").click(function(){
$("#style1").css("margin-top",10);
});
});
<h2>
<input type='checkbox' id="FlatCheckbox" class="FlatCheckbox" onClick=''>
AAA
</h2>
<div id='style1'>
<input type='button' onClick='' class='AddBtn' value='Apply / Save'>
</div>
My query is:
How can I reset the button's css back to its original state after clicking the checkbox again?