why this javascript code is not working?
<p>Do you know why this is failing, I mean alert is working (it shows me that if found the button) but text or background is not changed:</p>

<pre><code>    $('input[type=button]').click( function() {

    var button=document.getElementsByName("contactme");
    alert(button.length + " elements!");
    button.value="New Button Text";
   button.style.backgroundImage="url(some_real_gif);"
});
</code></pre>

<p>HTML:</p>

<pre><code>&lt;input type="button" name="contactme" value="test"/&gt;
</code></pre>

<p>Thanks...</p>

<p>I have to use plain java script not jQuery..</p>
