className is putting class in the wrapper but not the input itself
className is putting class in the wrapper but not the input itself
cfprogrammer
Posts: 8Questions: 3Answers: 0
in Editor
Is there a way do get editor to place the class directly on the input instead of the wrapper?
This discussion has been closed.
Answers
Yes, use the
attr
option which is available for each field type. It will set attributes on the input element:You could also use
field().input()
which provides the input element as a jQuery object.Allan