/ Published in: JavaScript
patikrina nurodyto elemento užpildytas reikšmes. Pateikia pranešimą ir grąžina false, jei ne tik raidės.
Expand |
Embed | Plain Text
function isAlphabet (elem, helperMsg, field) { var alphaExp = /^[a-zA-Z]+$/; if(!elem.match(alphaExp)) { alert(helperMsg); field.DataValue = null; event.returnValue = false; return false; } }
You need to login to post a comment.
