I have some code like this:
function switch_tabs(obj) {
$(\'.tab-content\').hide();
$(\'.tabs a\').removeClass(\"selected\");
var id = obj.attr(
Setting the CSS property after you have used .show()
should work. Maybe you are targeting the wrong element on your HTML page.
$('#foo').css('display', 'inline-block');
But if you are not using any effects of .show(), .hide()
why don't you set those CSS properties manually like:
$('#foo').css('display','none');
$('#foo').css('display','inline-block');