javascript preventdefault submit button then submit code example
Example 1: prevent button from submitting form
function myFunc(e){
e.preventDefault();
}
Example 2: halt button from submitting js
cell2.innerHTML = "<button type='button' class='remove-condition' onclick='removeCondition()'>X</button></td>";