When I use this on my page the background gradient doesn't appear (I'm only worried about Safari and Firefox at the moment):
$("#myElement").css({
backgroundImage: "-webkit-gradient(linear, top, bottom, from(black), to(white)",
backgroundImage: "-moz-linear-gradient(top, black, white)"
});
I tried using just one or the other as well in the appropriate browsers, but no luck there.
I can just use an inline style attribute for the element in my code, but I'd rather not do it that way if there's a way to do it using jQuery's API.