EasyUI Forum
April 30, 2024, 03:21:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: switchbutton in form does not send the value  (Read 5559 times)
kandy
Newbie
*
Posts: 9


View Profile Email
« on: March 02, 2016, 11:44:44 AM »

Hi,
I have a form
<form id="formMy" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" id="id"/>
....
<input class="easyui-switchbutton" name="aa" id="aa" data-options="onText:'Yes',offText:'Nooo'" value="1">
</form>

if I set the switch on the variable aa is sent, however, if I do not change it the variable aa is not sent with submit.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 02, 2016, 05:32:19 PM »

The switchbutton is same as checkbox. It has on/off state and can be toggled by the user. When a form is submitted, only the checked components can be submitted.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!