I am new to Jquery and trying out something to learn. I am using the below code to set the backgroundImage in the HTML but it is not working ( no background image is being shown )
$(this).css({"background-image" : "url(file:///users/i304223/Pictures/02872_takeflight_2880x1800.jpg)"});
My Question :
- Is body selector correct? Or should I use 'this' instead of body?
- Where should I place my jpg file in my project?
- What is the correct API to use to show the background image.
- Also if anyone can direct me to great Sample UI developed using Jquery,
it would be really nice as it would help me learn by trying different things.