Comments (3)
Thanks, I will check it out. I cannot add the name attribute because otherwise the values will be submitted twice. Once for the radio/checkbook, and once for the original underlying select. Only the values from the original select should be submitted; multiselect is really just a new interface to select them.
from jquery-ui-multiselect-widget.
Right, I didn't even think of that. I'm catching the form submit, scraping the values with getChecked and sending it off in an ajax request so I didn't run into it.
I'll look into another solution and post if I find anything.
from jquery-ui-multiselect-widget.
OK, I landed a fix for all single select and associated IE problems: 7a6258a
As it turns out, IE6/7 require the name attr for inputs to work correctly, so as much as I didn't want to include it, there's no other work around without bloating the code base severely.
Users just need to be aware that the values will come through from the original select box under the original select box's name, as well as a name generated by multiselect. So if you have a select control with the name and id "foo", and you select the "bar" option, serialization will look like this:
foo=bar&multiselect_foo=bar
This goes for single selects and multiple selects. If folks really dislike this then they can setup a submit handler that'll remove the name attr from all the inputs so they won't be transmitted. Seems like a good compromise to receive full IE compatibility.
from jquery-ui-multiselect-widget.
Related Issues (20)
- Multiselect cloning
- Check all / Uncheck all links not accessible through keyboard navigation HOT 1
- jquery-ui-multiselect-widget does not work when jQuery upgraded to 3.5.1 HOT 2
- menuHeight: "auto" should subtract the header height and other externalities when computing the max height
- jQuery unsupported pseudo: data when checking if the widget is in use HOT 3
- Options menuWidth is not working HOT 1
- collapse button should be type="button" HOT 6
- html5 validation - required=true
- How do I hide empty option values with classes? HOT 3
- Version 3 Doesn't Work
- Different Values From Original Select And Widget Select
- Customize text "LIMIT OF " + (numChecked - 1) + " REACHED!"
- No event on empty filter
- not work HOT 1
- Unreachable Code in _setMenuHeight HOT 2
- CSS asset on cdnjs.com
- [New Feature] Invert Selection HOT 1
- If the header is false, this line gives `undefined` HOT 1
- hdgClass is not defined when library is bundled with rollup
- menuwidth auto should only grow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-ui-multiselect-widget.