EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 06:33:46 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
switchbutton in form does not send the value
Pages: [
1
]
« previous
next »
Print
Author
Topic: switchbutton in form does not send the value (Read 5587 times)
kandy
Newbie
Posts: 9
switchbutton in form does not send the value
«
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
Re: switchbutton in form does not send the value
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...