In Jquery mobile, I have created a checkbox inside a listview. I want to separate the two events, as when the user only checks the checkbox an event fires. And onClicking a list item, a different event takes place.
How can i achieve this in JQM?
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.
This should not be a problem, take a look at my example: http://jsfiddle.net/Gajotres/QXJrk/
When you click on a checkbox only it’s click will trigger and when you click on a listview element only it will trigger it’s own action.
I don’t know how you managed to create your checkbox over listview implementation but if listview is triggered when you click a checkbox then you also need to do this in checkbox click event: