inputs and dropdowns, now supports merge of class attribute