Code: Select all
for(var i=0; i<15; i++) {
// Add data in html
// When data has a specified value, sets new data and repeat the loop
}
Thanks in advance.
Code: Select all
for(var i=0; i<15; i++) {
// Add data in html
// When data has a specified value, sets new data and repeat the loop
}
Code: Select all
let specf_val ='your-value';
for(var i=0; i<15; i++) {
// When data has a specified value
if($data == specf_val){
// sets new data
i--; // to repeat the action
} else {
// Add data in html
}
}