I want to know that this example fires on second click not at first click, why? i am using delegate function. the example is http://jsfiddle.net/3avaG/.
I need this solution badly.
Thank you.
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.
Delegate has been depreciated and therefore won’t work with jQuery 1.8. Change the version in your JSFiddle to 1.5 for example and it’s fine.
From the docs:
UPDATE: