Is there any way to disable all input fields in an div container with dojo?
Something like:
dijit.byId('main').disable -> Input
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure there is. Open up this form test page for example, launch FireBug and execute in the console:
Notes:
containerelement. If the container had some unique id, you could simplify the sample by having only one dojo.query:dojo.query('#containerId input').forEach( ...Update: There’s also a shortcut for setting an attribute value using NodeList‘s
attrfunction instead offorEach. attr takes first the attribute name and then the value or an object with name/value pairs: