How can I dynamically resize a select2 input to be the same width as the selected option? : <p>I'm building a 'natural language' search form using a series of inline select inputs, using jQuery Select2 for styling. The widths of the Select2 inputs appear to be set to the width of the selected option on initialisation, which is great. I just can't work out how to get the width to update when the selected option is changed. Any ideas?</p>

<p>Many thanks!</p>
