私は次<span>のように内部にあります<div>:
<div id="#mydiv">
<a href="#">Hello</a><span class="myImageArea"></span>
<div class="someClass">
</div>
</div>
次の CSS を使用します。
.myImageArea {
background: url("../img/upArrow.png") no-repeat right 5px;
display: inline-block;
cursor: pointer;
}
background:urlクラスの属性を変更したいmyImageArea
$('#mydiv').click(function() {
//change the background image of the class
});
これはどのように行うことができますか?