Skip to content

Commit e1bc226

Browse files
committed
Merge pull request marcj#174 from gyduxa/master
new setting styleClass to custom options
2 parents 1738efb + 649ba57 commit e1bc226

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jquery.selectBox.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,10 @@
502502
// Add Top and Bottom class based on position
503503
.addClass('selectBox-options selectBox-options-'+(posTop?'top':'bottom'));
504504

505-
505+
if (settings.styleClass) {
506+
options.addClass(settings.styleClass);
507+
}
508+
506509
if (select.triggerHandler('beforeopen')) {
507510
return false;
508511
}

0 commit comments

Comments
 (0)