title: Get id of element when click ( php, jquery, ajax, javascript )
body: <p>I'm sorry, this is my first project and I'm learning a lot. So if someone can help me, I will be grateful.</p>
  
  <p>I have this sidebar on my project, which contains rss links. I have to use ajax so each time when user click on any rss link, feeds will appear on screen.</p>
  
  <p>This is my code for sidebar:</p>
  
  <pre><code>&lt;div class="col-md-3"&gt;
  &lt;div class="well" style="width:300px; bottom: 0; top: 50px; position: fixed;"&gt;
      &lt;div id="sidebar-wrapper" style="overflow-y: scroll; overflow-x: scroll; height: 100%;"&gt;
          &lt;ul class="list-unstyled"&gt;
              &lt;li class="nav-header"&gt; 
                  &lt;a href="#" data-toggle="collapse" data-target="#userMenu"&gt;
                      &lt;h5&gt;&lt;b&gt;Subscriptions &lt;/b&gt;&lt;i class="glyphicon glyphicon-chevron-down"&gt;&lt;/i&gt;&lt;/h5&gt;
                  &lt;/a&gt;
  
                  &lt;ul class="list-unstyled collapse in" id="userMenu"&gt;
                      &lt;li&gt;&lt;a id="id_1" href="#"&gt;Sub_1&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_2" href="#"&gt;Sub_2&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_3" href="#"&gt;Sub_3&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_4" href="#"&gt;Sub_4&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_5" href="#"&gt;Sub_5&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_6" href="#"&gt;Sub_6&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a id="id_7" href="#"&gt;Sub_7&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>There is any chance to get id for each link when any of those links are clicked ?</p>
  
  <p>Or I have to write a different function where to use ajax for each id ?</p>
  
  <p>Can someone show me how to use ajax on this only once, not seven times ?
  I have a div in my body tag : <code>div id="changebodywithaxaj"</code> and I want to change it with properly feeds for each link.</p>
  
  <p>Thank you in advance.</p>