Jquery – Calculate sum of data-attribute value based on the values in all input fields
I'm trying to find the sum of input values within multiple inputs. My input form is something like below. Here I want to get input's data-attribute value for this calculation. $(document).ready(function() { const $total = $('#total'); $('.number').blur(function() { var sum…