开发者

Load data into html table without reloading entire table

开发者 https://www.devze.com 2022-12-09 02:10 出处:网络
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?

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

精彩评论

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