title: Do you have any idea why my code does not work and I can not get the numbers while clicking
body: <p>I need help please If the next code.</p>
  
  <p>I have two lines of <P> </p>
  
  <p>Now I want my code in JQ when the user clicks One of which <P> the Attribute of value will be printed to the screen.</p>
  
  <p>Use the following code and I always undefined</p>
  
  <p>Thank you very much for your help </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>$(this).click(function (){
           var val = $('#223').attr("value");
         alert (val) ;
      })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
          &lt;head&gt;
              &lt;title&gt;Page Title&lt;/title&gt;
              &lt;script src="https://code.jquery.com/jquery-3.1.1.js"&gt;&lt;/script&gt;
          &lt;/head&gt;
          &lt;body&gt;
          &lt;p value="223"&gt;JQuery is &lt;/p&gt;
          &lt;p value="1.8"&gt;JQuery is &lt;/p&gt;
      
          &lt;/body&gt;
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>