var widescreen = {
"flex": "0 100%",
"width": "100%",
"-webkit-flex": "0 100%",
"-moz-flex": "0 100%",
"-ms-flex": "0 100%",
};
jQuery.fn.MonPlugin=function() {
jQuery(".size-60").css(widescreen)
};
jQuery(".titre1").bind("click",MonPlugin);
I would like to use MonPlugin as function that I include on different events but console return Uncaught ReferenceError: MonPlugin is not defined.