i am trying to submit the form automatically using javascript. But unable to do so. Below is the target submit.
<input id="jpform:jpsubmit" type="submit" name="jpform:jpsubmit" value="Submit" tabindex="3" onclick="return validateJPJD();">
I have tried below steps. But doesn't work.
Javascript:
function Travel() {
return validateJPJD();
}
Travel()`
document.getElementById('jpform:jpsubmit').onclick();
document.getElementById('jpform:jpsubmit').submit();
Can someone please help me?
Alternatively, This form get submitted with enter button. But i dont the equivalent of this as well.