add input element class to wrapper