background: #000 no-repeat center url("/image/abc.jpg")
}
</style>
</head>
<body>
<div id="test"></div>
<script>
var $ = jQuery.noConflict();
$(document).ready(function(){
$("#test").click(function(){
$("#test").css({
backgroundColor: "red",
//Down there is my problem:
backgroundImage: "url(xyz.jpg)" //Should I type like this? backgroundImage: "url('xyz.jpg')" //Or like this? backgroundImage: url("xyz.jpg") //Is this ok? /*Plz tell what should I type? * (I have tried but it seem won't * work on FF & Chrome - Am I wrong something?) */
/*And once more question. * If I want to remove background, * then I should leave it blank or fill null value? */