.toggle(true) losing .css (font mismatch)?
Posted
by James123
on Stack Overflow
See other posts from Stack Overflow
or by James123
Published on 2010-05-10T04:00:32Z
Indexed on
2010/05/10
4:08 UTC
Read the original article
Hit count: 307
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?
© Stack Overflow or respective owner