Comments (5)
This is implemented already and it's working here, can you provide a test case in JSFiddle?
from jquery-selectric.
Hi,
first thanx for the plugin, it's great for wordpress ;)
but..with my .htaccess I have the same problem, after selecting a category the page is refreshed and the first default option is selected :(
I think this is due to the url...in my localhost is working good with url like: "http://localhost/mydomain/some-path/?product_cat=pippo" but in my domain the url is like: "http://mydomani/some-word/another-word/pippo/" and the first default option is selected.
I hope to have explained good my problem :)
There is a solution for this?
thanx
p.s. sorry if I wrote this in this suggestions section, and not in a bug section
from jquery-selectric.
You have a selected option?
Like this:
<select name='options'>
<option value='option-1'>Option 1</option>
<option selected value='option-2'>Option 2</option>
<option value='option-3'>Option 3</option>
</select>
from jquery-selectric.
mmm yes, but in the tag is still the same first default option that is selected, instead in the tag is selected the correct row ! But...I have a class="level-n" attribute in the options...n from 0 to N :) ...and I have discovered a solution :) I have deleted the parent relation in the categories and now it works fine, for me! This is the situation that not works correctly (an example) <div class="selectricHideSelect"> <select id="selectCategory" style="display:none" name="product_cat"> <option selected="selected" value="">Seleziona una categoria</option> <option class="level-0" value="alimenti">Alimenti</option> <option class="level-1" value="biscotti">Biscotti</option> <option class="level-1" value="cereali">Cereali</option> <option class="level-1" value="legumi">Legumi</option> <option class="level-1" value="pasta">Pasta</option> <option class="level-1" value="senza-glutine">Senza Glutine</option> <option class="level-1" value="senza-latte">Senza Latte</option> <option class="level-1" value="senza-lievito">Senza Lievito</option> <option class="level-1" value="vegano">Vegano</option> <option class="level-0" value="alternative-al-caffe">Alternative al Caffè</option> <option class="level-0" value="bevande">Bevande</option> <option class="level-1" value="alcoliche">Alcoliche</option> <option class="level-1" value="analcoliche">Analcoliche</option> </select> </div> and this is the actual situation with my workaround, and this works fine: <div class="selectricHideSelect"> <select id="selectCategory" style="display:none" name="product_cat"> <option selected="selected" value="">Seleziona una categoria</option> <option class="level-0" value="alimenti">Alimenti</option> <option class="level-0" value="biscotti">Biscotti</option> <option class="level-0" value="cereali">Cereali</option> <option class="level-0" value="legumi">Legumi</option> <option class="level-0" value="pasta">Pasta</option> <option class="level-0" value="senza-glutine">Senza Glutine</option> <option class="level-0" value="senza-latte">Senza Latte</option> <option class="level-0" value="senza-lievito">Senza Lievito</option> <option class="level-0" value="vegano">Vegano</option> <option class="level-0" value="alternative-al-caffe">Alternative al Caffè</option> <option class="level-0" value="bevande">Bevande</option> <option class="level-0" value="alcoliche">Alcoliche</option> <option class="level-0" value="analcoliche">Analcoliche</option> </select> </div> Ciao!
from jquery-selectric.
"his is implemented already and it's working here, can you provide a test case in JSFiddle?"
Well, I'm not sure why I couldn't get it to work previously, but it works fine now. Sorry.
And thanks for a cool bit of jquery.
from jquery-selectric.
Related Issues (20)
- Multiple selected via code with optgroup.
- $(..) selectric is not a function HOT 4
- Add dynamically default values by option
- Increase height of dropdown
- wrapper remains camelCase even with option camelCase = false
- Click event does not fire on nested elements inside li tags
- Native mobile click firing when hidden behind other element
- onClose event triggers before onChange on single selectboxes
- .selectric-open has unacceptable high z-index
- use classes instead inline styles to change elements behaviour
- Limit selection in Multi-select drop down
- Inside UI Dialog opens not to top but changes high of dialog
- Using dollar symbol in the options of the select box replaces the values of the options to 0,000 and 9,999
- Second event it's not loading in Mobile
- preventDefault error: [Chrome] Unable to preventDefault inside passive event listener due to target being treated as passive. HOT 7
- Accessibility not working in keyboard navigation
- Ipad pro is showing "desktop" version HOT 1
- Refresh not work
- Items do not display on Safari 16.1 Ventura HOT 1
- On multiple select, how to limit maximum selection?
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-selectric.