0

次のjqueryをprototypejsで書くにはどうすればよいですか?

<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 に答える