$(function(){
$("#mainContainer #container:last-child").css("background-image","url('/images/content-title.png') no-repeat")
})
code above didn't work , nothing happend
$(function(){
$("#mainContainer #container:last-child").css("background-image","url('/images/content-title.png')")
})
code above work , but it change all the #container background and repeat-y.
not only the last-child
what i want is change the last-child of #container background image and no-repeat
my html
<div id="mainContainer">//width 930px margin 0 auto
<div id="container">//height 500px test background repeat-y
dynamic content here
</div>
</div>