Chrome and problem with Jquery script

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???????

  1. <!-- jquery script for calculations -->
  2. <script>
  3. jQuery(document).ready(function(){
  4. $('.salesqty').blur(function () {
  5.     var sum = 0;
  6.     $('.salesqty').each(function() {
  7.         sum += Number($(this).val());
  8.     });
  9. $("#totalqty").html(sum);
  10. $('.salesval').blur(function () {
  11.     var sumv = 0;
  12.     $('.salesval').each(function() {
  13.         sumv += Number($(this).val());
  14.     });
  15. $("#totalval").html(sumv);

  16. });​​​​​​​​​

  17. });​​​​​​​​​

  18. });
  19. </script>