SyntaxFix
Write A Post
Hire A Developer
Questions
You need to specify the attribute width to resolve in order to preserve element width
$(document).ready(function() { $("#myselect").select2({ width: 'resolve' }); });