I have this one in js file
table = table + '<td class="td-problemlog-div-solution"><input type="button" style="width:40px; color:White; background-color:Red;" class="deletetButton" onclick="submitForm()" value="Delete" id="' + obj[i].PROBLEMID + '"/></td>';
It deletes selected row based on confirmation .but here , click cancel and ok doing the same thing , delets the row
and here is the function
function submitForm() {
return confirm('Rollback deletion of candidate table?');
}
Any help appreciated