title: CakePHP 2.4 : How to get id value from postlink in cakephp ?
body: <p>I am trying to get id value from postlink. here is the delete postlink in index.ctp</p>
  
  <pre><code> &lt;?php 
  
          echo $this-&gt;Form-&gt;postLink(
  
              $this-&gt;Html-&gt;tag('i', '', array('class' =&gt; 'glyphicon glyphicon-remove')),
              array('action' =&gt; 'delete', $user['User']['id'],'class'=&gt;'del'),
              array('escape'=&gt;false,'class'=&gt;'btn btn-sm btn-danger'),
          __('Are you sure you want to delete # %s?', $user['User']['id'])
      );
  
      ?&gt;
  </code></pre>
  
  <p>I have tried bellow code by jquery </p>
  
  <pre><code>$('document').ready(function(){
        var x=jQuery(this).attr("id");
        alert(x);
  });
  </code></pre>
  
  <p>Here I am not getting any value.How to get this id for ajax submission ? </p>