For each item : foreach « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
  </head>
  <body>
    <script>
      dojo.forEach(["A", "B"], function(inVal) {
        alert(inVal);
      });
    </script>
  </body>
</html>








29.14.foreach
29.14.1.For each function with value in dijit.form.TextBox
29.14.2.For each item
29.14.3.Use foreach to add action to buttons