469,357 Members | 1,827 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

How to make a button unclickable?

Hi,

I have a few buttons in a webpage. I want to dynamically disable the ability to click on one button. So the button is clickable only if a certain condition is met. Condition is the value of a variable like date or time. Can any one tell me how to do this with javascript?

Thanks in Advance
Feb 27 '11 #1
1 3948
dgreenhouse
250 Expert 100+
the_element.disabled = true; // Disables the button
the_element.disabled = false; // Enables the button
Feb 28 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Paul Turley | last post: by
3 posts views Thread by David | last post: by
2 posts views Thread by mohamed farouk | last post: by
1 post views Thread by shapper | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.