unable to call two functions on javascript onclick event -
i want call 2 javascript functions, using
<input type="submit" values="submit" onclick="return mandatorycheck(); submitscore();">
but submitscore()
function didn't execute. need help...
assuming performing validation check in mandatorycheck()
, returning true/false
. should use &&
operator
use
<input type="submit" values="submit" onclick="return mandatorycheck() && submitscore();">
Comments
Post a Comment