将数据加载到html表中,而不用重新加载整个表

问题描述:

是否有可能在td标签之间加载新数据并使用jQuery更改td标签的背景图像(如果我为每个标签赋予了ID)?将数据加载到html表中,而不用重新加载整个表

如果是这样,它将如何完成?

+0

这是可能的。你有什么问题? – Zote 2009-10-23 19:45:11

// set the background of all td tags 
$('td').css('backgroundImage', 'url('+url+')'); 

// set the content of a particular tag 
$('td#someID').html(yourHtml); 

// set the background and content of a specific tag 
$('td#someID').html(yourHtml).css('backgroundImage', 'url('+url+')'); 

所有这一切都在细节在jQuery的网站记载:http://docs.jquery.com/

+0

谢谢,我显然不够努力。 – Stanni 2009-10-23 20:06:49