I’m working out of codeigniter and trying to find out how I can change the value of a session variable when the user changes a dropdown menu.
<select name="testselect">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
Ideas?
Since you tagged your question with jQuery, I’m presuming you’re using it somewhere in your page, so you change your HTML to this:
and add this to your
$(document).ready( .. );call to capture changes to that dropdown like so: