Change images in div having same class

by Akram kamal

HTML

<ul>
  <li><a class="language <?php echo ($language_name=='marathi')?'active':'';?>" href="#" id='marathi'>Marathi</a></li>
  <li><a class="language <?php echo ($language_name=='english')?'active':'';?>" href="#" id='english'>Englishi</a></li>
</ul>


<div class='readme'><img src="read.jpg" width="62" height="71" border=0></div>

JavaScript

$(".language").click(function() {
    var readMe = {
        marathi: "read.jpg",
        english: "reade.jpg"
    };
    $(".readme img").attr({
        src: readMe[this.id],
        alt: readMe[this.id],
        title: readMe[this.id]
    })
    return false
})