Adding specific class for loading content using load() not working in Chrome/Safari.

Adding specific class for loading content using load() not working in Chrome/Safari.

Hi! I'm using a function to load a page into a div. When I add the class of the element I want to show (.contentpaneopen) Chrome and Safari show no content. It works OK in IE and FF. When I ommit the class it works on all browsers.
  1. function loadContent(elementSelector, sourceUrl) {
  2.         //Works in Chrome en Safari:
  3.         $(""+elementSelector+"").load(""+sourceUrl+"");
  4.         //Does not work in in Chrome / Safari (Windows):
  5.         //$(""+elementSelector+"").load(""+sourceUrl+" .contentpaneopen");
  6.     }
Does anyone have a clue why this happens? Is it a bug?

I use this code to show a Joomla Article in a div on a webpage.
Thanks!