Simple javascript to update a textbox when a button is hit?
<p>I have a simple form that I'm playing around with and I'm trying to update a textbox value when a command button is clicked. The command button is called btnVerifyLocation and the textbox is called txtGeoLocation. I've attempted to do this in Javascript with the following:</p>

<p>The code I have is as follows:</p>

<pre><code>&lt;script type="text/javascript" id="testing"&gt;

$("btnVerifyLocation").click(function ()
{
     $("input[name*='txtGeoLocation']").val("testing");
});

&lt;/script&gt;
</code></pre>

<p>However when I click the button nothing happens.</p>
