Get div class with javascript?
<p>I need to find/get a class called "group" from a div-tag, with javascript.
after that i want to insert a html button(input=submit) inside that div i just found.</p>

<p>How can this be done with javascript ?</p>

<p>i've tryed this so far, but gets and error: document is not declared!</p>

<pre><code>var myMessage = 'Mange tak';
var html_kode = '&lt;input type="submit" onclick="clickedelm = this.value" id="qr_tak" tabindex="1" name="sbutton" title="(Alt + A)" accesskey="a" value="Auto Tak" class="button"&gt;';

if(myMessage) {
        var find_class = document.getElementsByClassName('group');
        if (find_class) {
            find_class.innerHTML += html_kode;
        }
    }
</code></pre>
