Dojo Dijit and HTML5 in Real world applications/Dijit/dijit.byId

From PMISwiki
< Dojo Dijit and HTML5 in Real world applications‎ | Dijit
Revision as of 19:58, 19 September 2011 by WikiSysop (talk | contribs) (Created page with "==Template== ==How to use== ==Tips and tricks== dijit.byId would not work on HTML elements not specified as an dijit element: <code lang="html5"> <script type="text/javascript"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template

How to use

Tips and tricks

dijit.byId would not work on HTML elements not specified as an dijit element: <script type="text/javascript"> dijit.byId('s21').set('value', 'New value for text field') ); </script>

<input type="text" id="s21" name="result" data-dojo-type="dijit.form.TextBox"

            data-dojo-id="s20" >     

Verified in

IE 8, Firefox 3.6.22, Dojo 1.6.1

References

Demo: Use of dijit.byId