jQuery syntax for changing the value of a table cell
Posted
by cf_PhillipSenn
on Stack Overflow
See other posts from Stack Overflow
or by cf_PhillipSenn
Published on 2010-04-05T20:20:48Z
Indexed on
2010/04/05
20:23 UTC
Read the original article
Hit count: 126
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.
© Stack Overflow or respective owner