Return to Snippet

Revision: 43186
at March 18, 2011 18:04 by erraja_07


Initial Code
/****  VALIDATE IMAGE   ***/
function validateImageFile(fld_value) {
	if(!/(\.bmp|\.gif|\.jpg|\.jpeg)$/i.test(fld_value)) {
		//alert("Invalid image file type.");
		//fld.form.reset();
		//fld.focus();
		return false;
	}
	return true;
}

Initial URL

                                

Initial Description

                                

Initial Title
JQuery Image File Validation

Initial Tags

                                

Initial Language
JavaScript