I am using ASP MVC3 for which i am using a partial view but the issue is am not able to load the scripts into the same. Below is an code for which i have tried:
<script type="text/javascript">
$('#bodytag').load(function () {
alert('Load was performed.');
});
</script>
<div class="acc-expand-bkg" id="bodytag">
<div class="submenu_dropdown clearfix">
<div class="filter_bar clearfix">
<div class="left" style="margin-left: 10px;">
<label style="width: auto; margin-top: 7px;">
Standard:</label>
@Html.DropDownList("teamDetailId", ViewBag.TeamNames as SelectList, null, new { id = "teamDetailId" })
</div>
</div>
</div>
</div>
The above partial view is not getting loaded with the script. I tried with document.ready neither it worked for it. Can you please tell me the work around for the same.
Thank you in advance