I have a product attribute named stone_weight. I'm trying to get the value of the attribute based on it's name name="product[stone_weight]" on change event. But it is not triggering any event. How can i properly use any event like change or keyup.
require.config({
deps: [
'jquery'
],
callback: function ($) {
$(document).ready(function(e){
$('input[name="product\\[stone_weight\\]"]').change(function(e){
$stone = $('input[name="product\\[stone_weight\\]"]').val();
console.log($stone);
});
})
}
});