As question describe all, but just for clarification, I want to do a common stuff like alert
value when i click on any button.
Please suggest a solution in YUI3 only because i am using YUI3.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a more efficient way to do it:
This attaches a single event handler to the body instead of attaching a separate event handler to each button.
YUI Documentation – delegation