title: Jquery or Javascript problem in my partial view
body: <p>Can I use jQuery or JavaScript code in partial views?</p>
  
  <p>I have a grid in my partial view and I am trying to hide one grid element using jQuery in that partial view. I am not able to do so. But same code works if I use it without a partial view.</p>
  
  <p>Can anybody help me out?</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage&lt;NascoBenefitBuilder.ViewModels.Obn.ProductTemplate.ObnProductTemplateMainData&gt;" %&gt;
  &lt;script type = "text/javascript" language="javascript"&gt;
  $(document).ready(function(){
      alert("success");
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>This code is in my partil view but when this page loads I am not able to popup this alert box.</p>
  
  <p>thanks Thanks</p>