I just can't work this one out. I have a table with a column of checkboxes. After an Ajax update, I want to update a specific cell in the rows with checked checkedboxes. The jQuery Ajax call I'm using is:
$.ajax({
type: 'POST',
url: 'ProcessDate',
data: params,
error: function(xhr, ajaxOptions, thrownError) {
alert(xhr.statusText);
},
success: function(html) {
closeDialog();
$('#results tbody tr').each(function(){
$("#CaseID:checked").parent().siblings("td.DateUpdated").html('CHANGE');
});
},
cache: false
});
And the HTML is:
<table id="results">
<tr>
<td><input type="checkbox" id="CaseID"></td>
<td id="DateUpdated"></td>
</tr>
<tr>
<td><input type="checkbox" id="CaseID"></td>
<td id="DateUpdated"></td>
</tr>
<tr>
<td><input type="checkbox" id="CaseID"></td>
<td id="DateUpdated"></td>
</tr>
The Ajax call succeeds but my table update doesn't happen.