has this API. What about ?
$(".firstName").on('change keyup paste', function () {
var element = $(this);
console.log(element);
var dataAttribute = $(element).attr("data-someattr");
console.log("someattr: " + dataAttribute );
});
I recommend use this keyword in order to get access to the entire element so your are able do everything you need with this element.