When I try the code above nothing happens. Only difference is I'm checking a field length of 5.
I came across this and follow the following instruction for JIRA Server :
I used the following css for the field Environment for ex:
#environment-val /* The "id" of the "Environment" text box */
margin: -2px 0 0 -5px;
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events