Hi,
I have a textbox called insexpdate
I want the user to enter valid date format in mm/dd/yyyy format only
I call the function onblur event
but the code is not workingCode:function callinsexpdate() { var re = /^\d{1,2}\/\d{1,2}\/\d{4}$/; alert(re); if((document.frm1.insexpdate.value == "") && (!document.frm1.insexpdate.value.match(re))) { alert("Invalid date format"); return false; } }
any idea
todd



LinkBack URL
About LinkBacks
Reply With Quote




Bookmarks