.addClass not updating page, but does through debugger!

.addClass not updating page, but does through debugger!

I have this simple section of code:

  1.     if (field != null) {
  2.     var data = snapshot[key];
  3.     var value = data['name'] ? data['name'] : data;
  4.     var prevValue = field.val();
  5.    
  6.      field.val(value);
  7.    
  8.     if (prevValue != value) {    
  9.     field.addClass('lvd-value-changed');
  10.     }
  11.     else {
  12.     field.removeClass('lvd-value-changed');
  13.     }    
  14.     }    
I am using a socket technology that sends the data directly to the browser. I get a snapshot of data as JSON. I am able to see the values change correctly. What I am not seeing is the CSS styles from the addClass / removeClass calls. If I step though the code with FireBug or Chrome debugger then I do see the CSS style changes.

Any times are greatly appreciated!