I have a JQuery selector with some simple event handling attached.
jQuery('.ui-jqgrid-sdiv td[aria-describedby*="SUM"]').click(function(event) {alert('SUM=')});
Now, I want to find the exact value of the aria-describedby
attribute. This could be say
SUM_1
SUM_2
SUM_3
SUM_4
Any tips how I do this?
Thanks.
By using .attr() you can get it
try this
$('.ui-jqgrid-sdiv td[aria-describedby*="SUM"]').click(function(event){
alert($(this).attr('aria-describedby'));
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With