in jQuery. I am raising an event by class. how do you do the same in Prototype.
$(".button").click(function() { var element = $(this); var Id = element.attr("id"); });
$$('.button').observe('click', respondToClick); function respondToClick(event) { var element = event.element(); var Id = element.id; }
http://www.prototypejs.org/api/event
Event.observe($$('.button'), 'click', function(e) { // ... });
Source: https://habr.com/ru/post/1724969/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1724964/why-does-unspecifiedbool-for-classes-which-have-intrinsic-conversions-to-their-wrappered-type-fail&usg=ALkJrhhxpFi0l6PxEP5Oh2RObNGiOFhIEQLoad the XML file into a DataTable (not from the database) - c #There is a standard way to represent TSQL. The minimum date in ASP.NET is datetime.Net Remoting: Wrapping Custom Objects and More Remote Channels - .netException Handling - c ++Saving order in SQL - sqlIE 6 dropdown menu selection too narrow - cssWhy does the circle drawn in MATLAB look like an ellipse? - matlab.c_str () weirdness? Changing data without rhyme or reason? - c ++Track id processes of child processes? - javaAll Articles