当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net - 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?

分享给朋友:
您可能感兴趣的文章:
随机阅读: