Code Monkey home page Code Monkey logo

Comments (5)

sharmilanAmpi avatar sharmilanAmpi commented on June 20, 2024 5

Hi guys,
I had also the same issue that i have some options before load ajax bootstrap select to a element.
But i resolve by using

   $('your element ID').trigger('change');

after you add the ajax bootstrap select.

in your example http://jsfiddle.net/okbnumdc/10/ add this line in the end of js.
$('select').trigger('change');

It works fine for me but couldn't keep more then one options. If any one can resolve it let me know please.

from ajax-bootstrap-select.

truckingsim avatar truckingsim commented on June 20, 2024 2

@sharmi89 it couldn't keep more than one option in the example at least because it wasn't a multi select.

See: https://jsfiddle.net/okbnumdc/14/ for an example with multi select working with your patch for at least temporarily resolving this.

from ajax-bootstrap-select.

truckingsim avatar truckingsim commented on June 20, 2024

This issue: #41 applies to single selects as well. I still haven't figured out why the heck its not working on pre selected options. If you figure out anything when working through this please let me know. Right now I could take any information.

Sorry its not working for you.

from ajax-bootstrap-select.

link-point avatar link-point commented on June 20, 2024

Thanks @sharmi89! Your solution works like a treat.

At least in the fiddle, I still have to figure out why it fails in my project, but that is another story :)

from ajax-bootstrap-select.

truckingsim avatar truckingsim commented on June 20, 2024

#76 should fix this. If its still an issue open a new issue.

from ajax-bootstrap-select.

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.