How can I pass the value of this from a .change to another function with jQuery?
<p>I have the following:</p>

<pre><code>$("#cityID").change(cityIdChanged(this))


function cityIdChanged(select) {
   store.setItem('CityID', select.val());
}
</code></pre>

<p>This seems not to work as it gives me an error message saying that "select" does not support the property val. </p>

<p>How can I pass a reference to the thing that changed to my cityIdChanged function?</p>
