Validation des médias jQuery

//write the type of media of file in accept method
//following validation will accept only videos
$( "#myform" ).validate({
    rules: {
        field: {
            required: true,
            accept: "video/*"
        }
    }
});
Isaac