Sunday, March 10, 2013

Chrome not liking JS replace without using a RegEx? Parentheses character. Was that why? Also, must rap ) in [].

does not work in Chrome
galleryDiv_bg = galleryDiv_bg.replace(')',''); 

does work in chrome
galleryDiv_bg = galleryDiv_bg.replace(/[)]/g,'');

No comments:

Post a Comment