But it does work See this fiddle http://jsfiddle.net/4MUZ4/
also make sure you are running the observe method after the DOM has finished loading and is ready to be manipulated Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Sun, Jul 13, 2014 at 11:33 PM, Иван Иванов <svjaz...@gmail.com> wrote: > Hi Team, > > <input id="login" type='submit' value='login' /> > > Event.observe("login", "click", function(){ > alert("t2"); > }); > > Why don't work? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at http://groups.google.com/group/prototype-scriptaculous > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous. For more options, visit https://groups.google.com/d/optout.