tags:

views:

239

answers:

1

Hey,

Is it possible to load new data between td tags and change the background image of the td tags with jQuery if I gave each one a id?

If so, how would it be done?

+1  A: 
// 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/

Nathan Ridley
Thanks, I obviously didn't look hard enough.
Stanni