jquery - how to select event by class in prototype -


In jQuery. I am starting an event by class how do you do this in the prototype.

  $ (".button"). Click (function () {var element = $ (this); var id = element.attr ("id");});  

  $$ ('.button'). ('Click', answerTotalClick); Click Reply to function (event) {var element = event.element (); Var id = element.id; }  


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -