How to Keep validation for the image type using jquery
Im new for the jquery can any one help me for keeping validation for the image type...im able to keep size validation but not able to put type validation can any one help to keep image type validation which suits for this code...
<script type="text/javascript">
$(document).ready(function() {
$('#id_image').bind('change', function() {
if(this.files[0].size > 1000141){
$('#formerror').html('File is too big');
}else{
$('#formerror').html(' ');
}
});
});
</script>