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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…