Search code examples
jqueryasp.net-mvc-2jquery-tabs

How to remove the background of jquery tabs without affecting the datetimepicker?


I have a jquery tab in my asp.net mvc2 web page, and it has a background(tab content background) that I need to make white. So this is what I typed:

$(function() {
    $("#tabs").tabs();
$(".ui-widget-content").css("background", "none");
});

But, this makes my datetime picker also background: none.

I want to do this for the tab content background only. Any ideas.

Thanks


Solution

  • This:

    $(".ui-widget-content").css("background", "none");
    

    Should be:

    $(".ui-tabs-panel").css("background", "none");