Hi,
how can I make that button chcange to disable after click?
I'v tried this but it doesnt work
<script>
function myFunction() {
document.getElementById("myBtn").disabled = true;
}
</script>
more
Thank you
3 replies · opened May 29, 2023
Hi,
how can I make that button chcange to disable after click?
I'v tried this but it doesnt work
<script>
function myFunction() {
document.getElementById("myBtn").disabled = true;
}
</script>
more
Thank you
this
more
Hello,
You can try something like this:
[ch_pre type="js"]document.getElementById("myBtn").onclick = e => {
e.preventDefault();
document.getElementById("myBtn").disabled = true;
};[/ch_pre]
Since these codes are not related to Canvas and are customizations, we Apologize for the Inconveniences, however, we currently do not provide Customization related Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy . You will need to manually code this or Hire a Freelancer to help you out.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
it works perfectly!
Thank you
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard