Code doesn't execute in normal stage, but it does with breakpoints.

Code doesn't execute in normal stage, but it does with breakpoints.

Hi,

I have the following code:

  1. $(".editproduct").click(function(){
  2. id = this.id;
  3. $("#content_new").dialog('open');
  4. });

When i click on an element with the class 'editproduct' nothing happens. But when i put in breakpoints in Firebug on the lines above everything works like a charm. Is jQuery trying to do things faster then I want? I thought the ID didn't got set but that's no problem, because when there is no ID set it should open anyway.