title: How to update a value of p (Paragraph tag) using jquery
body: <p>I want to  update the value of the P tag on change of drop down menu using jquery. 
  My code for changing and getting value using jquery is as follows. Please give some solutions thanks...</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (document).ready(function(){
    $('.dropdown-menu li a').click(function(){
      alert($(this).text());
  
    });
  });
  &lt;/script&gt;
  
   &lt;p id="qtitle" style="padding-left:15px;"&gt;&lt;strong&gt;text to change&lt;/strong&gt;&lt;/p&gt;
  </code></pre>