lcdsantos / jQuery-Selectric

jQuery plugin for easy manipulation and customization of HTML selects
http://selectric.js.org/
MIT License
727 stars 157 forks source link

Support enable/disable param in selectric #172

Open ruoqianfengshao opened 7 years ago

ruoqianfengshao commented 7 years ago

I have two select A and B , and A's status depend on B‘ option, so i will change A to enable or disable frequently.

I know there is a way to do this:

$('B').attr("disabled",  true)
$('B').selectric('refresh')

but can selectric support enable/ disable method to do this simply, like this:

  $('B').selectric('enable')

or

  $('B').selectric('disable')

If u can accept it, I'm glad to push a pr. Thank u!

gearsdigital commented 7 years ago

@ruoqianfengshao We would appreciate a PR :)