Java Script validation:
String length validation:
This Tag Validate the String length by property of
(“str.length”) .JavaScript validation is not secure as anybody can change what
your script does in the browser. Using it for enhancing the visual experience
is ok though.
Code :
var textBox = document.getElementById("myTextBox");
var textLength = textBox.value.length;
if(textLength
> 5)
{