title: Change value of <p> in PartialView
body: <p>I have PartialView with <code>&lt;p&gt;</code></p>
  
  <p>Here is code</p>
  
  <pre><code>  &lt;p id="findings-date" class="blue-text"&gt;Test&lt;/p&gt;
  </code></pre>
  
  <p>I load partialView into div via this js code</p>
  
  <pre><code> $(document).on('click',
      '.findingval',
      function () {
          var findingval = $(this).text();
          var idvalue = $(this).siblings('.idvalue').text();
         $('#left-window').load('@Url.Action("Findings", "PatientDatabase")');
  
      });
  </code></pre>
  
  <p>I need to change value of <code>p</code> to <code>findingval</code></p>
  
  <p>I tried </p>
  
  <p><code>$('#findings-date').text(findingval);</code> but it not works.</p>
  
  <p>After this I tried just to get value like this <code>$('#findings-date').text();</code></p>
  
  <p>But it's null. Why so?</p>
  
  <p>Seems it try to get data when partialView not appended.</p>
  
  <p>Full code of script</p>
  
  <pre><code>   $(document).on('click',
      '.findingval',
      function () {
          var findingval = $(this).text();
          var idvalue = $(this).siblings('.idvalue').text();
         $('#left-window').load('@Url.Action("Findings", "PatientDatabase")');
         var date = $('#findings-date').text();
        alert(date);
      });
  </code></pre>