<img style="cursor: pointer" src="../common/images/plus.jpg"/> View History($revisions)
How to select the image button above? I want to select image with a source of
../common/images/plus.jpg
and of course the image must be clickable.
I added
<script>
$("img[src=../common/images/plus.jpg]").click(function(){
alert("ok");
});
</script>
However, I got an error
expected identifier or string for value in attribute selector but found '.'