input select by data set in js code example
Example 1: jquery select element with data
$('[data-attribute="value"]');
Example 2: javascript get data-id attribute
//get data-id attribute in plain Javascript
var element = document.getElementById('myDivID');
var dataID = element.getAttribute('data-id');
//get data-id using jQuery
var dataID = $('myDivID').data('data-id');