0
I have a button that when clicked it closes the modal, in fact it does an action with CSS doing the div
disappear, just getting the button to be clicked again and open the modal. However I am not able to create a new action on the same button, but now to open it.
Look at the code below:
$(document).ready(function(){
$(".bt-fechar").click(function(e){
e.preventDefault();
$(".box-preco").css("right", "-245px");
});
});
After the first click that closes the modal, the second click should do the following action:
$(".box-preco").css("right", "0");
Causing the modal to come to the starting position appearing on the screen. How can I do this?
Perfect Chun, thank you so much for your help!
– Marcelo Almeida