I want to apply select2 to a bunch of jquery elements on the page that all have the same class name but it looks like if i call select2() on an element that already has had
you can check if the element has select2 attribute
select2
$('.MyDripdowns').each(function (i, obj) { if (!$(obj).data('select2')) { $(obj).select2({ width: "455px" }); } });
EDIT
As @Fr0zenFyr said in his comment for v4.0 you can use :
if (!$(obj).hasClass("select2-hidden-accessible"))