Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var textbox1 = document.getElementById("textbox1");
- punoTeksta.addEventListener("blur", function (event){
- if ((textbox1.value.length <= 5) && (textbox1.value[0] === punoTeksta.value[0].toUpperCase()))
- {
- alert("You have to have text of length at least 5 in the textbox and your first letter has to be capital!");
- event.preventDefault();
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment