0

如何在prototypejs中编写以下jquery?

<a class="button view" style="cursor:pointer" id="addComment"></a>

$(function() {
 $("#addComment").click(function(){

         alert("hello world");
     });
});
4

1 回答 1

1

工作演示

Event.observe('addComment', 'click', function(event) {
    alert('u clicked on click here');
});​
于 2012-06-22T09:12:37.600 回答