I am seeking a solution for my website's contact form that doesn't involve using a captcha. My goal is to prevent spam bots by implementing a simple method, such as disabling the submit button until the user answers a basic question. I came across some code on the internet, but unfortunately, it did not work:
<script>
document.getElementById("Submit").disabled=true;
</script>
Can anyone provide assistance in fixing this code or suggesting an alternative approach?