I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.
The problem is, if I put the $(document).r
well, just plain old never mind!
http://www.learningjquery.com/2006/09/multiple-document-ready
is there anything wrong with doing something like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Myapp...SearchResultsViewModel>" %>
<script type="text/javascript">
$(document).ready(function () {
alert('partial is ready.');
});
</script>
<h1>This is my <%: Model.name %> partial view</h1>