hi i'd like to preload an image using jquery. After the image is preloaded there should be an alert message: "image preloaded"
i tried the following code but it doesn't work:
$("images/test.jpg").load(function(){
alert("Image loaded.");
});
hope u can help.