By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,514 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

problem in enabling disabled checkbox using JavaScript

P: 1
I am trying to disable and enable a checkbox from javascript.
>
The problem is that if the checkbox starts out as:
>
Expand|Select|Wrap|Line Numbers
  1. <input id="Override" type="checkbox" name="Override"/>
>
I can change it back and forth with no problems.
using disabled = true or disabled = false
>
If I start out as:
>
Expand|Select|Wrap|Line Numbers
  1. <input id="Override" type="checkbox" name="Override" disabled="disabled"/>
>
I can never enable it again using the above statements.
Apr 12 '12 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,390
you didn't post the related JavaScript code - could you please do so, so that we can have a look at it to see where the issue might occur?
Apr 12 '12 #2

Post your reply

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