How can I make buttons unclickable?
gawakamy
Member Posts: 109
Hi, GS Tech Supporters.
I made some buttons for IAP, and need to make them unclickable before user purchase them. How do I make it?
I made some buttons for IAP, and need to make them unclickable before user purchase them. How do I make it?
Answers
$(document).ready(function() {
$('input[type="button"]').click(function() {
var input = this;
input.disabled = true;
setTimeout(function() {
input.disabled = false;
}, 3000);
});
});