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
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)
2 matches
Mail list logo