use "class" if exist
use "advancedSelect" as default class
do not use default class
Fixes #3070