How to call a javascript function before SQL insert action
Jen HuOct 26 2011 — edited Oct 27 2011I have a page that will insert a new row when user clicks button 'create'. I want to check if that is a duplicate before inserting. So i put onClick="checkDuplicate()" under button attribute, however, the function doesn't get called. What is the problem?