def render_js_code(self, id_, *args, **kwargs):
if id_:<EOL><INDENT>options = self.render_select2_options_code(<EOL>dict(self.get_options()), id_)<EOL>return mark_safe(self.html.format(id=id_, options=options))<EOL><DEDENT>return u'<STR_LIT>'<EOL>
Render html container for Select2 widget with options.