lcvriend / wc-multi-selector Goto Github PK
View Code? Open in Web Editor NEWWeb component that lets a user select multiple options from an arbitrarily nestable hierarchy within a drop-down menu
License: GNU General Public License v3.0
Web component that lets a user select multiple options from an arbitrarily nestable hierarchy within a drop-down menu
License: GNU General Public License v3.0
Hi, i tried to create a nested optgroups with this plugin.
But pre-selection with "selected" attribute on DOM load seems to not working.
...
<option value="1" selected>TEST 1</option>
...
I'm expecting that TEST 1 is selected on load page, but nothing is selected...
Hi another question: during form submit, values are always passed as JSON string like ["1","2","8"]
So in my index.php page I need to manipulate data from multi-selector (convert from JSON to ARRAY) in a different way from other submitted traditional data:
<?php
$json_id_from_multiselector = $_POST['ids'] ?? "";
$array_ids = $json_id_from_multiselector != "" ? json_decode($json_id_from_multiselector, true) : []; //<-- json to array
...
Any chance that during submit, data is already submitted as array? Thanks for your time
Originally posted by @itajackass in #1 (comment)
Hi, if you can, i'd like to suggest new options for translating default strings without editing the code (i'm italian).
I suggest option to replace default text string for:
Thanks
Hi, is there any methods to use?
For example i'd like to use this plugin in a search page: actually seems that search can be done only using ajax cause there is no way to preselect some "option" (option value="x" selected) on DOM/PAGE load.
So I ask if there is a method to use with jquery (on document ready) to set as "selected" some IDs from select to prevent using ajax.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.