RsD0p9BK
11/2/2016 - 3:53 AM

select__attr.js

// On select change, get data attribute value

$(this).find(':selected').data('id');
$(this).find(':selected').attr('data-id');

// http://stackoverflow.com/questions/8345666/on-select-change-get-data-attribute-value
// https://coderwall.com/p/t_cgwq/when-is-better-to-use-data-or-attr