title: Is somehow possible to duplicate a form with js/dojo/jquery?
body: <p>lets'say i have a form, with like this :</p>
  
  <pre><code>&lt;form name="frmMail" method="POST" action="save.do" dojoType="dijit.form.Form" onSubmit="return this.validate();"&gt;
      &lt;label for="mailSubject"&gt;subject&lt;/label&gt;
      &lt;input type="text" name="mailSubject"
              dojoType="dijit.form.ValidationTextBox"
              required="true"
              value="" /&gt;
      &lt;label for="mailContent"&gt;Content&lt;/label&gt;        
      &lt;textarea name="mailContent"
              dojoType="dijit.Editor"
              propercase="true" &gt;&lt;/textarea&gt;
  
      &lt;button dojoType="dijit.form.Button" type="submit" id="save" name="save" &gt;Save&lt;/button&gt;
  &lt;/form&gt;     
  </code></pre>
  
  <p>is it possible to duplicate this code with javascript? Right now, i am putting all this in div, and i copy the innerHtml data, but its not good, cause the id of each elements are duplicated.
  any thoughts?</p>
  
  <p>UPDATE</p>
  
  <pre><code>&lt;form name="frmMail" dojoattachevent="onreset:_onReset,onsubmit:_onSubmit" dojoattachpoint="containerNode" action="save.do" method="POST" id="dijit_form_Form_0" dir="ltr" widgetid="dijit_form_Form_0"&gt;
  &lt;label for="mailSubject"&gt;subject&lt;/label&gt;
  &lt;div wairole="presentation" id="widget_dijit_form_ValidationTextBox_0" class="dijit dijitReset dijitInlineTable dijitLeft dijitTextBox dijitValidationTextBox dijitTextBoxError dijitValidationTextBoxError dijitError dijitTextBoxFocused dijitValidationTextBoxFocused dijitTextBoxErrorFocused dijitValidationTextBoxErrorFocused dijitErrorFocused dijitFocused" role="presentation" dir="ltr" widgetid="dijit_form_ValidationTextBox_0"&gt;&lt;div class="dijitReset dijitValidationContainer"&gt;&lt;input type="text" wairole="presentation" readonly="" tabindex="-1" value="? " class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" role="presentation"&gt;&lt;/div&gt;&lt;div class="dijitReset dijitInputField dijitInputContainer"&gt;&lt;input type="text" name="mailSubject" autocomplete="off" dojoattachpoint="textbox,focusNode" class="dijitReset dijitInputInner" aria-invalid="true" id="dijit_form_ValidationTextBox_0" tabindex="0" aria-required="true" value=""&gt;&lt;/div&gt;&lt;/div&gt;
  &lt;label for="mailContent"&gt;Content&lt;/label&gt;        
  &lt;div widgetid="dijit_Editor_0" class=" dijitEditor"&gt;&lt;div&gt;
  &lt;div lang="" dojoattachpoint="containerNode" tabindex="0" wairole="toolbar" class="dijit dijitToolbar" role="toolbar" id="dijit_Toolbar_0" dir="ltr" widgetid="dijit_Toolbar_0"&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton dijitButtonDisabled dijitDisabled" dir="ltr" widgetid="dijit_form_Button_5"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_5_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_5_label" id="dijit_form_Button_5" title="Undo" style="-moz-user-select: none;" aria-disabled="true"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconUndo"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_5_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Undo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value="" disabled=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton dijitButtonDisabled dijitDisabled" dir="ltr" widgetid="dijit_form_Button_6"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_6_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_6_label" id="dijit_form_Button_6" title="Redo" style="-moz-user-select: none;" aria-disabled="true"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconRedo"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_6_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Redo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value="" disabled=""&gt;&lt;/span&gt;&lt;div wairole="presentation" class="dijitToolbarSeparator dijitInline" role="presentation" id="dijit_ToolbarSeparator_0" widgetid="dijit_ToolbarSeparator_0" style="-moz-user-select: none;"&gt;&lt;/div&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton dijitButtonDisabled dijitDisabled" dir="ltr" widgetid="dijit_form_Button_7"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_7_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_7_label" id="dijit_form_Button_7" title="Cut" style="-moz-user-select: none;" aria-disabled="true"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconCut"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_7_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Cut&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value="" disabled=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton dijitButtonDisabled dijitDisabled" dir="ltr" widgetid="dijit_form_Button_8"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_8_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_8_label" id="dijit_form_Button_8" title="Copy" style="-moz-user-select: none;" aria-disabled="true"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconCopy"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_8_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Copy&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value="" disabled=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_9"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_9_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_9_label" id="dijit_form_Button_9" tabindex="-1" title="Paste" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconPaste"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_9_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Paste&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;div wairole="presentation" class="dijitToolbarSeparator dijitInline" role="presentation" id="dijit_ToolbarSeparator_1" widgetid="dijit_ToolbarSeparator_1" style="-moz-user-select: none;"&gt;&lt;/div&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitToggleButton" dir="ltr" widgetid="dijit_form_ToggleButton_0"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_ToggleButton_0_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_ToggleButton_0_label" id="dijit_form_ToggleButton_0" tabindex="-1" title="Bold" style="-moz-user-select: none;" aria-disabled="false" aria-pressed="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconBold"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_ToggleButton_0_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Bold&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitToggleButton" dir="ltr" widgetid="dijit_form_ToggleButton_1"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_ToggleButton_1_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_ToggleButton_1_label" id="dijit_form_ToggleButton_1" tabindex="-1" title="Italic" style="-moz-user-select: none;" aria-disabled="false" aria-pressed="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconItalic"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_ToggleButton_1_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Italic&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitToggleButton" dir="ltr" widgetid="dijit_form_ToggleButton_2"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_ToggleButton_2_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_ToggleButton_2_label" id="dijit_form_ToggleButton_2" tabindex="-1" title="Underline" style="-moz-user-select: none;" aria-disabled="false" aria-pressed="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconUnderline"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_ToggleButton_2_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Underline&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitToggleButton" dir="ltr" widgetid="dijit_form_ToggleButton_3"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_ToggleButton_3_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_ToggleButton_3_label" id="dijit_form_ToggleButton_3" tabindex="-1" title="Strikethrough" style="-moz-user-select: none;" aria-disabled="false" aria-pressed="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconStrikethrough"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_ToggleButton_3_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Strikethrough&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;div wairole="presentation" class="dijitToolbarSeparator dijitInline" role="presentation" id="dijit_ToolbarSeparator_2" widgetid="dijit_ToolbarSeparator_2" style="-moz-user-select: none;"&gt;&lt;/div&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_10"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_10_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_10_label" id="dijit_form_Button_10" tabindex="-1" title="Numbered List" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconInsertOrderedList"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_10_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Numbered List&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_11"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_11_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_11_label" id="dijit_form_Button_11" tabindex="-1" title="Bullet List" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconInsertUnorderedList"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_11_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Bullet List&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_12"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_12_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_12_label" id="dijit_form_Button_12" tabindex="-1" title="Indent" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconIndent"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_12_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Indent&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton dijitButtonDisabled dijitDisabled" dir="ltr" widgetid="dijit_form_Button_13"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_13_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_13_label" id="dijit_form_Button_13" title="Outdent" style="-moz-user-select: none;" aria-disabled="true"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconOutdent"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_13_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Outdent&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value="" disabled=""&gt;&lt;/span&gt;&lt;div wairole="presentation" class="dijitToolbarSeparator dijitInline" role="presentation" id="dijit_ToolbarSeparator_3" widgetid="dijit_ToolbarSeparator_3" style="-moz-user-select: none;"&gt;&lt;/div&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_14"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_14_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_14_label" id="dijit_form_Button_14" tabindex="-1" title="Align Left" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconJustifyLeft"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_14_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Align Left&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_15"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_15_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_15_label" id="dijit_form_Button_15" tabindex="-1" title="Align Right" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconJustifyRight"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_15_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Align Right&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_16"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_16_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_16_label" id="dijit_form_Button_16" tabindex="-1" title="Align Center" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconJustifyCenter"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_16_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Align Center&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;span lang="" class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="dijit_form_Button_17"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-dijit_form_Button_17_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="dijit_form_Button_17_label" id="dijit_form_Button_17" tabindex="-1" title="Justify" style="-moz-user-select: none;" aria-disabled="false"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon dijitEditorIcon dijitEditorIconJustifyFull"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="dijit_form_Button_17_label" class="dijitReset dijitInline dijitButtonText dijitDisplayNone"&gt;Justify&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="button" dojoattachpoint="valueNode" class="dijitOffScreen" value=""&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="dijitEditorIFrameContainer"&gt;&lt;iframe frameborder="0" id="dijit_Editor_0_iframe" style="border: medium none; width: 100%; height: 300px;" src="javascript:parent.dijit.byId(&amp;quot;dijit_Editor_0&amp;quot;)._iframeSrc" class="dijitEditorIFrame"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;textarea propercase="true" dojotype="dijit.Editor" name="mailContent" id="dijit_Editor_0" dir="ltr" class="dijitEditor" style="display: block; position: absolute; top: -1000px;"&gt;&lt;/textarea&gt;
  
  &lt;span class="dijit dijitReset dijitInline dijitButton" dir="ltr" widgetid="save"&gt;&lt;span dojoattachevent="ondijitclick:_onButtonClick" class="dijitReset dijitInline dijitButtonNode"&gt;&lt;span waistate="labelledby-save_label" wairole="button" dojoattachpoint="titleNode,focusNode" class="dijitReset dijitStretch dijitButtonContents" role="button" aria-labelledby="save_label" id="save" tabindex="0" style="-moz-user-select: none;"&gt;&lt;span dojoattachpoint="iconNode" class="dijitReset dijitInline dijitIcon"&gt;&lt;/span&gt;&lt;span class="dijitReset dijitToggleButtonIconChar"&gt;?&lt;/span&gt;&lt;span dojoattachpoint="containerNode" id="save_label" class="dijitReset dijitInline dijitButtonText"&gt;Save&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;input type="submit" dojoattachpoint="valueNode" class="dijitOffScreen" value="" name="save"&gt;&lt;/span&gt;
  </code></pre>
  
  <p></p>