vestman / Select-or-Die

Yet another jQuery plugin to style select elements. Demo at http://vst.mn/selectordie/
MIT License
524 stars 133 forks source link

The update method does not offer any update of the config #31

Open spaceemotion opened 9 years ago

spaceemotion commented 9 years ago

In order to "update" an already existing select field with a new config, I have to destroy the old SoD field first, and then re-create on with the new settings.

Is there a way to do something like:

$('#select').selectOrDie('update', {
    onChange: function() {
        // ...
    }
})
vestman commented 8 years ago

@spaceemotion, thanks for the feedback (yeah, I know it's been a trillion years). I guess you've moved on to another plugin, but just for curiosity: do you think all config options should be updatable or only the onChange?

spaceemotion commented 8 years ago

Hey @vestman, thanks for the heads up. We all know how busy programmers can be :) Regarding your question: If possible, i would love to be able to update as much as possible, onChange being a must. Cheers!

vestman commented 8 years ago

@spaceemotion, cool. Thanks for the feedback!