On click get button Value
<p>I have a button like following</p>

<pre><code>&lt;input type='button' value='Generate' onclick='f1()' /&gt;
</code></pre>

<p>now the f1 function should show a alert box contain button value. in this case 'Generate'</p>

<p>How to do this?</p>

<p>I tried</p>

<pre><code>alert(this);
alert(this.val());
</code></pre>

<p>it does not work</p>
