I have used the below code for check the field value should be the title case. it is working fine but when I entering capital letter for all text, it is not throwing the error. but it should through.
My Code: i have used the below link code
e.g : when i enter the FACEBOOK, It should not allow. it should be Facebook.