title: passing a value of a link with ajax
body: <p>i have this code for my notification alerts.
  how can i pass in the a href link the stdid value?
  is it possible?
  i didn't managed to make it work and i tried a some things but nothing seems to work...</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
  
    $(document).on('click', '.notered&lt;?= $a?&gt;', function() {
  
  
      $.ajax({
  
        type: 'POST',
        url: 'ntupdate.php',
        data: {
          "stdid": &lt;?= $note['id']?&gt;
        },
        success: (
          alert('&lt;?= $note['
            id ']?&gt;')
        )
      });
  
    });
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="" name="stdid" value="&lt;?= $note['id']?&gt;" class="dropdown-item noti-container py-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 notered&lt;?= $a?&gt;"&gt;
    &lt;i class="ft-bell info float-left d-block font-large-1 mt-1 mr-2"&gt;&lt;/i&gt;
    &lt;span class="noti-wrapper"&gt;
                                      &lt;span class="noti-title line-height-1 d-block text-bold-400 info"&gt;שיבוץ חדש במערכת &lt;/span&gt;
    &lt;span class="noti-text"&gt;&lt;?= $note['std_name']  ?&gt;&lt;/span&gt;
    &lt;/span&gt;
  &lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>