jQuery .load() losing style
I am using jquery to load a partial view.
$("#policyMembers").html('<div class=loader></div>').load("<%= Url.Action("PolicyMembers", "Scheme") %>");
my partial view looks as follow:
<table class="grid">
<tr>
<th>Title</th>
<th>First Name</th>
<th>Surname</th>
<th>ID Number</th>
<th>Date Of Birth</th>
<th>Gender</th>
<th>Cover</th>
</tr>
for some reason the grid class is not applied when loading the view using jQuery, but when i load it by making use of renderpartial, the style is applied.
any 开发者_如何学运维ideas?
精彩评论