• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

Unable to initiate Dijit checkboxes in an uninitiated state

I am trying to initiate Dijit checkboxes in an unchecked state.  No matter what I put in for the 'checked' value, the resulting CheckBox is always checked.  For example, if I use the line:

<input id="cb2" dojotype="dijit.form.CheckBox" name="Parcels" checked=false value="something" type="checkbox" />

the box will be checked.  I've used "false", "unchecked", 0, and several other values for the checked property, to no avail.
1 Solution
Don't put in any checked attribute.  The default is unchecked.  For most browsers just having checked as an attribute means checked = true

cshore12Author Commented:
That's very weird, but it does work!

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now