非常简单的问题!我想知道如何使用JavaScript来提醒我的文本框中的东西...不知道我现在正在做什么不工作。继承人的功能通过javascript提醒文本框
function alertNow(comment){
alert(comment);
}
现在这里是文本框
<input type = 'text' name = 'txt_comment'>
<button onClick = alertNow(txt_comment.value) value = "Submit Comment"></button>
相信这是可行的,我以前做过,但我只是忘了一些语法的概率。有任何想法吗?谢谢!