开发者

Load data into html table without reloading entire table

Is it possible to load new data between td tags and change the background image o开发者_如何学编程f the td tags with jQuery if I gave each one a id?

If so, how would it be done?


// 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+')');

All of this is documented in detail at the jQuery website: http://docs.jquery.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜