1
I have a very simple button, but I wanted to know if it is possible to load the button when it is clicked. I wanted to use jquery.
Follow the code of my button.
.button {
margin-top: 12px;
margin-right: 20px;
border: 0;
padding: 5px;
width: 100px;
height: 42px;
cursor: pointer;
border-radius: 4px;
color: #FFFFFF;
background-color: #FBBC05 !important;
}
<form name="form" action="#">
<button type='submit' class="button">GERAR</button>
</form>
caramba turned out very good. Well I realized that you use the class '$(".button")', as I do for jquery to load the function in all tags '< button>'?
– Hugo Borges
Switch to the selector
$("button")
@Hugoborges.– BrTkCa
ok, and possible tbm disable the button after it is clicked?
– Hugo Borges
$(this).prop("disabled",true);
– BrTkCa