Skip to content
Snippets Groups Projects
Commit 915cdb86 authored by reiva5's avatar reiva5
Browse files

Validation to not to go next page if cannot pas the requirement in orderojek

parent df3607ce
No related merge requests found
var clicked1 = false;
function next1(){
if (!clicked1){
clicked1 = true;
var benar = true;
var x = document.getElementById("menuAwal");
var i;
for (i = 0; i < x.length-2 && benar; ++i){
benar = (x.elements[i].value !== "");
}
if (benar){
document.getElementById('box_aktif').innerHTML =
'<div class="stepBox">' +
'<div class="number">1</div>' +
......
......@@ -36,7 +36,7 @@
<span class="number">3</span>
<div class="step">Complete your order</div>
</div>
<form action="#" method="post" class="form">
<form id="menuAwal" action="#" method="post" class="form">
<div class="formBox">
<label for="pick" class="labelBox">Picking Point</label>
<input id="pick" class="inputBox" type="text" name="selectDestination" id="pickingPoint" required>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment