I'm creating a jquery plugin and would like to know how to use the selected div in the plugin to be my variable ... I tried this:
(function ($) {
$.fn.plugin = function () {
$(document).ready(function () {
var video = this;
video.contextmenu(function () {
return false;
});
});
};
})(jQuery);
But it did not work, can anyone tell me how to do it?