Is there a way to add a description to each option in a dropdown using select2?
问题 I have a Django project in which I have a select dropdown like this: But I want something like this: My <select> form looks like so: (after inspecting in developer tools) <select class="form-control" data-parsley-required="true" id="id_org_role" name="org_role" required=""> <option value="A">Administrator</option> <option value="M" selected="selected">Member</option> </select> If not select2, is there any other jquery library that can help me accomplish this? I have tried following the