[ad_1]
you have an error in your code, there is one closing bracket too much
change
if (document.form['form']['name'].value != "" &&
document.form['form']['city'].value != "" )) {
to
if (document.form['form']['name'].value != "" &&
document.form['form']['city'].value != "" ) {
1
[ad_2]
solved Javascript – verify empty inputs