I use the following code to check for a change in value of input fields. In this case fields starting with IDs “Status_” and “Position_”
$(document).ready(function () {
$("input[id^='Status_'], input[id^='Position_']").change(function (e) {
var type = $(this).attr('id').split('_')[0];
update($(this), type);
});
});
Now I have changed from status being an input field to being a selectable dropdown.
<select id="Status_0" name="AdminSummaries[0].Status"><option value="1">Released</option>
<option value="2">Review</option>
<option value="3">New</option>
</select>;
Now can I make it so that when a new value is selected in the drop down then the update(..) function gets called just like it did if it was an input field?
Your logic is good. But you may have to change
input[id^='Status_']toselect[id^='Status_'].