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
{{ message }}
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
To prevent the first option from being clickable I'd like to suggest the following addition of a function and a slightly change of code.
New function:
//function to create first option in the select menu
function createFirstOption($container){
$('<option selected="selected" disabled="disabled" value="0">'+settings.topOptionText+'</option>').appendTo($container);
}//createFirstOption()
Within the function createSelect() use instead of
//create default option if the text is set (set to null for no option)
if(settings.topOptionText){
createOption($('<li>'+settings.topOptionText+'</li>'), $select);
}
the code
//create default option if the text is set (set to null for no option)
if(settings.topOptionText){
createFirstOption($select);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To prevent the first option from being clickable I'd like to suggest the following addition of a function and a slightly change of code.
New function:
Within the function createSelect() use instead of
the code
The text was updated successfully, but these errors were encountered: