$.fn.showFlex = function() { this.css('display','flex'); }

$(".element").showFlex();