changing id of <td> in JQuery
How do you c开发者_JAVA技巧hange the id of a td element in JQuery?
You can use attr and an id selector:
var element = $('#currentId');
element.attr('id', 'newId');
You can also set it directly in pure JavaScript:
var td = document.getElementById('currentId');
td.id = 'newId';
精彩评论