You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to call the selectOption inside the change method ,it result in Uncaught RangeError: Maximum call stack size exceeded
I need to reset the value of the select box to default once the user select a option. So i try to set the selectOption(0) on the change event . Here is the code
$(function ($) {
var el = $('select#test');
el.selectBoxIt();
el.on('change', function (e) {
var selectBox = el.data("selectBox-selectBoxIt");
selectBox.selectOption(0);
})
});
</script>
But results in error
Could you possible suggest any solution.
The text was updated successfully, but these errors were encountered:
When you try to call the selectOption inside the change method ,it result in
Uncaught RangeError: Maximum call stack size exceeded
I need to reset the value of the select box to default once the user select a option. So i try to set the selectOption(0) on the change event . Here is the code
But results in error
Could you possible suggest any solution.
The text was updated successfully, but these errors were encountered: