+ 2
How to call a function when submit button is clicked and form onsubmit function is true?
I have made a form with a onsubmit function named "checkf()". I know that when the function returns true then the form will be validated. I want that when the "checkf()" is true then it should change the value of <div> height in css.(the div in which form is there.). How to do that?
1 Answer
+ 1
onSubmit="funcName()"
function funcName() {
document.getElementById("divName").height = value;
}