views:

17

answers:

0

I am losing .css (font mismatch when .toggle(true). How to get back my right .css?

$(document).ready(function() { 

   $('tr[@class^=RegText]').hide().children('td'); 

    list_Visible_Ids = []; 
    var idsString, idsArray; 

    idsString = $('#myVisibleRows').val(); 
    idsArray = idsString.split(','); 

    $.each(idsArray, function() { 
        if (this != "") { 
           $('#' + this).siblings('.RegText').toggle(true); 
            list_Visible_Ids[this] = 1; 
        } 
    }); 

Losing font:

$('#' + this).siblings('.RegText').toggle(true);

.css working fine if I use below code:

$('#' + this).siblings('.RegText').toggle();

But I want expand those sections by setting 'true'. How can I get back my font?