title: jquery attr edit only first
body: <pre><code>&lt;a class="buttonright" onclick="ZZZZ('f')"&gt;Post&lt;/a&gt;
  
  &lt;a class="buttonright" onclick="sssss('ZZZZ')"&gt;Post&lt;/a&gt;
  
  $(".buttonright").attr("onclick","new_function_name()");
  </code></pre>
  
  <p>How edit only first?</p>