[Dojo-interest] finding the dojo widget

Stephen Ince stephenpince at gmail.com
Fri Jun 11 18:48:55 EDT 2010


 Hi,
     How do I use dojo.query for a given class. I tried using the following 
but does not seem to. I am trying to get the input id but it is returning 
the widget id.

.e.g.

<input type="text" name="testScenarioResults[5].testScenario.percent" 
value="" id="editForm_testScenarioResults_5__testScenario_percent" 
class="testScenarioResultsScenarioPercent"
dojoType="dijit.form.NumberSpinner" constraints="{min:0,max:100,places:0}"/>

dojo.query(".testScenarioResultsScenarioPercent")[0].id
returns
"widget_editForm_testScenarioResults_5__testScenario_percent"

instead of
"editForm_testScenarioResults_5__testScenario_percent"





More information about the Dojo-interest mailing list