|
|
| DOJO |
Expert:Manish
what is this function console.debug doing in this code
<html> <head> <title>combobox</title> <!-- combo box --> <script type="text/javascript"> dojo.require("dojo.parser"); dojo.require("dijit.form.ComboBox"); function setVal1(value) { console.debug("Selected "+value); } </script> </head>
<body> <h2>Combo box</h2> <select name="country" dojoType="dijit.form.ComboBox" autocomplete="false" value="country" onChange="setVal1"> <option>India</option> <option>California</option> <option >Illinois</option> <option >New York</option> <option >Texas</option> </select> </body> </html> |
| Answers |
Hi,
The console.debug("Selected "+value); function displays the Debug message on the screen.
The debug message will be displayed only when debug mode is set to true.
This is usually used to debug the Dojo application.
Learn dojo tutorial on http://www.roseindia.net/dojo/
Thanks
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|