Coder Social home page Coder Social logo

Suggestion about jquery-selectric HOT 5 CLOSED

lcdsantos avatar lcdsantos commented on June 14, 2024
Suggestion

from jquery-selectric.

Comments (5)

lcdsantos avatar lcdsantos commented on June 14, 2024

This is implemented already and it's working here, can you provide a test case in JSFiddle?

from jquery-selectric.

vpistis avatar vpistis commented on June 14, 2024

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.

lcdsantos avatar lcdsantos commented on June 14, 2024

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.

vpistis avatar vpistis commented on June 14, 2024

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.

brybott avatar brybott commented on June 14, 2024

"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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.