jquery-selectBox
jquery-selectBox copied to clipboard
Bug with jquery 3.1.1
with jquery 3.1.1, console says: TypeError: a(...).parents(...).andSelf is not a function
Having the same issue.
Same here. Any clues?
Same problem, using jQuery 3.2.1: TypeError: $(...).parents(...).andSelf is not a function /jquery.selectbox.min.js:539
This happens when you click on the chosen option... last update fot this is 4 years ago, so I dont expect an solution soon. Think the jQuery UI selectmenu is a good alternative.
***** EDIT ***** Change it to addBack() https://api.jquery.com/addBack/
(This function has been deprecated and is now an alias for .addBack(), which should be used with jQuery 1.8 and later.) https://api.jquery.com/andself/
I too see the
TypeError: a(...).parents(...).andSelf is not a function
problem, but find it only occurs during an exception. So it seems that exception handling is broken or at least crippled. My workaround was to revise my code to avoid the exception (in my case it was pre-initializing ALL of my <selection>
elements before my initial call to $('select').selectBox()
).
@Seoptics, I tried jQuery UI selectmenu, but it doesn't support <select size>
, which allows me to "pre-expand" my selection menus. Thanks for the suggestion though.