Javascript Image Validation
>> Thursday, December 1, 2011
Image Validation using JavaScript.
function isValidImage(imagename) { imagefile_value = imagename; var checking = imagefile_value.toLowerCase(); if (!checking.match(/(\.jpg|\.gif|\.png|\.JPG|\.GIF|\.PNG|\.jpeg|\.JPEG)$/)) { return false; } else { return true; } }
0 comments:
Post a Comment