Is it possible to invoke a click event based on the ref attribute using jQuery, in addition to being able to do so based on class and id attributes?
The code below is based on ref="btFirst"
, but I am unsure how to access the ref
.
<button class="ag-paging-button" onclick="alert('Hello world!')" ref="btFirst" data-vivaldi-spatnav-clickable="1">First</button>
$( ".btFirst" ).click(function() {
alert( "Handler for .click() called." );
});