How to change text field attribute ?