Walidacja mediów 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