Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

jquery media validation

//write the type of media of file in accept method
//following validation will accept only videos
$( "#myform" ).validate({
    rules: {
        field: {
            required: true,
            accept: "video/*"
        }
    }
});
 
PREVIOUS NEXT
Tagged: #jquery #media #validation
ADD COMMENT
Topic
Name
2+3 =