EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Coder on April 19, 2021, 12:38:15 PM



Title: input near the form
Post by: Coder on April 19, 2021, 12:38:15 PM
source:
Code:
<input 
  name="someName"
  form="someForm"
  class="easyui-textbox"
  data-options="..."
>

result:
Code:
<input form="someForm"
   class="easyui-textbox textbox-f"
   data-options="..."
   textboxname="someName"
   style="display: none;"
>

<span class="textbox textbox-invalid" style="width: 300px;">
  <input id="_easyui_textbox_input1"
    type="text"
    class="textbox-text validatebox-text validatebox-invalid textbox-prompt"
    autocomplete="off"
    tabindex=""
    style="..."
   title=""
  >
  <input type="hidden"
    class="textbox-value"
    name="someName"
    value=""
  >
</span>

CAN BE add attr FORM to hidden input ?:
Code:
  <input type="hidden" 
    class="textbox-value"
    name="someName"
    value=""
    form="someForm"
  >


Title: Re: input near the form
Post by: Coder on April 19, 2021, 02:26:57 PM
now I use

Code:
document.getElementsByName('someName')[0].setAttribute('Form','someForm')

on onSubmit event