- Thu Dec 08, 2016 5:36 am
#787826
good morning friends
i have dropdown menu in my dynaform that id filled by an array... i put the first value in the menu (.... Please Select ....)
now i want to validate the form when the user press (submit) to prohibit selecting the (.... Please Select ....) value
i wrote this jave code
please help me
i have dropdown menu in my dynaform that id filled by an array... i put the first value in the menu (.... Please Select ....)
now i want to validate the form when the user press (submit) to prohibit selecting the (.... Please Select ....) value
i wrote this jave code
Code: Select all
but nothing happen when i press (submit) it redirects to the next stepfunction validate(){
if($('#brc_advisors').getValue() == ".... Please Select ....") {
alert('please select valid project manager')
return false;
}
}
$('#submit0000000001').click(validate);
please help me