I want to perform the submit function before going to my summary page but it's not working...I even tried returning false. but still, it didn't work..
function submit(){
nodes = document.getElementsByClassName('check_boxes');
len = nodes.length;
for (i = 0; i < len; i++) {
nodes[i].removeAttribute("disabled");
}
return true;
}
<form action="reservation_summary.php" method="post" name="reservation_form" onsubmit="submit()">