$('#parent_tab [href="#tab1"').click();
The above line works fine and the tab gets selected in other browsers but not safari. I had to close the square bracket of href as follows in order to make it work in Safari.
$('#parent_tab [href="#tab1"]').click();
Why did jquery not throw an error when the square bracket is not closed?