You can also set the maxlength property =2 to stop the box from allowing more than 2 characters.