add class in inputfield

a class for styling, added and removed by js