original_string: public function toJS($intDynamicPosition = 0)
      {
          $strReturn = "";
  
          foreach ($this->__fields as $field) {
              $strReturn .= $field->toJS($this->__dynamic);
          }
  
          $strReturn .= $this->conditionsToJs($intDynamicPosition);
  
          return $strReturn;
      }
code: public function toJS($intDynamicPosition = 0)
      {
          $strReturn = "";
  
          foreach ($this->__fields as $field) {
              $strReturn .= $field->toJS($this->__dynamic);
          }
  
          $strReturn .= $this->conditionsToJs($intDynamicPosition);
  
          return $strReturn;
      }
code_tokens: public function toJS ( $ intDynamicPosition = 0 ) { $ strReturn = "" ; foreach ( $ this -> __fields as $ field ) { $ strReturn .= $ field -> toJS ( $ this -> __dynamic ) ; } $ strReturn .= $ this -> conditionsToJs ( $ intDynamicPosition ) ; return $ strReturn ; }
docstring: Generate Javascript code.
  
  See {@link \ValidFormBuilder\Base::toJs() Base::toJs()}
  
  @param integer $intDynamicPosition The dynamic position counter
  @return string Generated javascript code
docstring_tokens: Generate Javascript code .