title: Get this value by class on onclick
body: <p>i have form and jquery for get value <code>this</code> by class</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>function sendModel(el){
  var id_model = $(el).class('id_model');
    alert(id_model);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;form&gt;
    &lt;input name='id_model' class='id_model' value='M001'&gt;
    
    &lt;button onclick='sendModel(this)'&gt; send &lt;/button&gt;
    
    &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>how to show alert with <code>id_model</code> value ??thanks guys</p>