I have a div having many tags inside. I want to bind the click event on all text elements that have x attribute.
I have tried
$('#attendacneLineChart').find('text')
but this returns all the text elements. But I need only those text element that has x attribute.