How to change text of an html button with jquery
<p>I've watched a bunch of code ,none worked , and i am probably missing something . The only thing that worked for me in jquery and javascript was document.write . I don't know if there's something wrong with the code , or if i have to include something</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;script type="text/javascript"&gt;
    $('#klik').click(function() {

        $('#klik').text('test');

    }); 
&lt;/script&gt;

&lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;


&lt;button id="klik"&gt;Click me!&lt;/button&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
