I have a table where every row has a unique id.
The last table cell has class=”status” where I want to show the user the result of their action.
In my $.ajax call, I have:
,success: function(result){
$('tr#'+result).td('.status').text('Updated');
};
result is the id of the row that was updated.
It’s just throwing an error message that says $( and that’s all.
There are no method named
.td(). This is probably what you are looking for:Also make sure that
resulthas valid value.You didn’t post whole code, but it looks like parse error – the code should probably end with
});, not};.