How to access the ID of an HTML element
<p>How to get the value from "id" instead of from "value" and show it on the page? Now I have <code>Holzart:3</code>, I want to have <code>Holzart:Lärche</code>.</p>

<p>I have this function:</p>

<pre><code>$(document).ready(function() {
  $("input[name='holzart']").click(function() {        
    PobierzWartosc2();
  });
});

function PobierzWartosc2() {
  $('#aus2').html('');
  $("input[name='holzart']").each(function() {
  if (this.checked == true) {
    $('#aus2').append('Holzart:'+ $(this).val()) }
  });
}
</code></pre>

<p>and this HTML:</p>

<pre><code>&lt;tr&gt;&lt;td&gt;&lt;label&gt;
&lt;input type="radio" name="holzart" value="3" id="Lärche" &gt;Lärche&lt;/label&gt;&lt;/td&gt;&lt;/tr&gt;
</code></pre>
