I'm working on an ASP.net web application.(我正在开发ASP.net Web应用程序。)
I have a form with a submit button.(我有一个带有提交按钮的表格。) The code for the submit button looks like <input type='submit' value='submit request' onclick='btnClick();'>
.(提交按钮的代码类似于<input type='submit' value='submit request' onclick='btnClick();'>
。)
I want to write something like the following:(我想写类似以下内容的东西:)
function btnClick() {
if (!validData())
cancelFormSubmission();
}
How do I do this?(我该怎么做呢?)
ask by Daniel Allen Langdon translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…