Chrome and problem with Jquery script
I have a script that runs just fine in IE but will not work in Chrome, i am a jquery novice and forgive my messy code but i am at a stage where it works ;-) Just need to know why it doesn't work in Chrome???????
- <!-- jquery script for calculations -->
- <script>
- jQuery(document).ready(function(){
- $('.salesqty').blur(function () {
- var sum = 0;
- $('.salesqty').each(function() {
- sum += Number($(this).val());
-
- });
- $("#totalqty").html(sum);
- $('.salesval').blur(function () {
- var sumv = 0;
- $('.salesval').each(function() {
- sumv += Number($(this).val());
-
- });
- $("#totalval").html(sumv);
- });
- });
- });
- </script>