function myFunction() {
document.getElementById("tt").style.marginTop = "50px";
document.getElementById("tt").style.marginTop = "80px";
}
<div class="switcher" style="margin-top: 30px;background-color: #430000;width: 300px;height: 300px;" id="tt">
<button id="quick-search-switcher" type="button" onclick="myFunction()">Find a doctor</button>
</div>
I need some help here my code to let the button on the first click margin-top the container div 30px and on the second click -30px but it is not working please help me with this code.