114
rated 0 times
[
118]
[
4]
/ answers: 1 / hits: 91437
/ 11 Years ago, sun, may 26, 2013, 12:00:00
I have a button like following
<input type='button' value='Generate' onclick='f1()' />
now the f1 function should show a alert box contain button value. in this case 'Generate'
How to do this?
I tried
alert(this);
alert(this.val());
it does not work
More From » javascript