Re: [jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread Liam Byrne
That won't trigger a load event This is as close as you'll get (using an image object to actually load it, and then using it. var imageObj = new Image(); $(imageObj).attr("src",imagePath).load(function(){ // do whatever else you want to do in here too $("#leftCol").css("background

[jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread jscharf
2 possibilities: via attribute: $("#mytd").attr("background", "path/to/image.jpg"); or via CSS $("#mytd").css("background-image", "path/to/image.jpg"); that should work fine for your needs (make sure the paths are correct)