I am struggling to retrieve the value of a selection box inside jQuery. Specifically, I need to access the selection box value within a function that triggers on a checkbox change event:
This is what I have so far:
$('input').on('change', function() //need selection box value here
});
<select class="selectclass" id="id" >
<option value="22" >option1</option>
<option value="33" >option21</option>
</select>
I have looked into similar questions on stackoverflow but have not found the solution I need
jquery change select to checkbox
etc...