title: Change div content onclick
body: <p>I have div structure like this.</p>
  
  <pre><code>&lt;div id="comparison_widgets" class="ui-widget row-fluid"&gt;
      &lt;div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="widget_0"&gt;
          &lt;div class="portlet-header ui-corner-all"&gt;China&lt;/div&gt;
              &lt;div class="portlet-content" id="id_0" data-highcharts-chart="3"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="widget_1"&gt;
          &lt;div class="portlet-header ui-corner-all"&gt;India&lt;/div&gt;
              &lt;div class="portlet-content" id="id_1" data-highcharts-chart="3"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="widget_2"&gt;
          &lt;div class="portlet-header ui-corner-all"&gt;US&lt;/div&gt;
              &lt;div class="portlet-content" id="id_2" data-highcharts-chart="3"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And each div with class <code>portlet-content</code> contains a pie chart. So, now when I click on any pie chart, its respective <code>portlet-header</code> div content should be changed to <code>XYZ</code>. For eg:- If I click China graph its name should be changed to XYZ.</p>
  
  <p>Currently I'm doing it like this <code>$(".portlet-header").text("XYZ");</code> which changes all the portlet-header content. How do I do it correctly?</p>