Javascript in chrome plugin has syntax error
        Posted  
        
            by Cyclone
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Cyclone
        
        
        
        Published on 2010-06-05T16:07:17Z
        Indexed on 
            2010/06/05
            16:12 UTC
        
        
        Read the original article
        Hit count: 325
        
chrome.tabs.executeScript(null, {code:"$.each(selectValues, function(key='" + timestamp + "', value='Custom')
{   
     $('#expire').
          append($(\"<option></option>\").
          attr(\"value\",key).
          text(value)); 
});"});
It says that the first line has a syntax error, and the WebKit inspector shows odd highlighting patterns.
What's wrong with that? A friend thinks I need to escape some characters somewhere.
Thanks for the help!
© Stack Overflow or respective owner