While populating flexigrid using javascript method (which is in another .js file), unfortunately, the css is lost after I insert new rows. Other sections in the page are ok.
I use the following code:,
var newTbl = '<tr><td>' + id + '</td><td>' + name + '</td><td></tr>';
$('#flexSwitch > tbody:last').append(newTbl);
And the html code I use:
<div id="switchGridDiv" style="width: 100%">
<table id="flexSwitch" class="flexigrid">
<tbody>
</tbody>
</table>
</div>
I can use .css() method of jquery but this will surely take too long when the size of flexigrid css is considered.
Any suggestions, why this might have occurred or any other way how to solve it?
Thanks in advance