$('.price').blur(function () {
var sum = 0;
$('.price').each(function() {
sum += Number($(this).val());
});
// here, you have your sum
});
More Related Contents:
- how to get source of a page
- Slide down button to show text HTML CSS
- CORS issue – No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- jQuery: outer html() [duplicate]
- How to enable or disable an anchor using jQuery?
- Queue ajax requests using jQuery.queue()
- jQuery OR Selector?
- Bootstrap 3 Collapse show state with Chevron icon
- How can I set the value of a DropDownList using jQuery?
- Detecting no results on jQuery UI autocomplete
- jQuery UI Autocomplete widget search configuration
- jQuery load external site page
- Accessing clicked element in angularjs
- jquery input select all on focus
- jQuery and TinyMCE: textarea value doesn’t submit
- jQuery click event not working in mobile browsers
- Pass Blob through ajax to generate a file
- jQuery Validate plugin – password check – minimum requirements – Regex
- Mobile site – force landscape only / no auto-rotate
- jQuery select based on text
- The field date must be a date in mvc in chrome [duplicate]
- switch audio source with jquery and HTML5 audio tag
- Return Value from inside of $.ajax() function
- How does GitHub change the URL without reloading a page?
- jquery resize listener on a div
- jQuery: append() object, remove() it with delay()
- What’s faster for including scripts, using CDN (Google) or storing them locally in website’s root?
- Is there a difference between $().ready() and $(document).ready()
- Disable select options based on value *through the HTML only!*
- How do you change the default widget for all Django date fields in a ModelForm?