By taking input value as string then slice the last entered data with .slice(0,-1) then replace the value. for more see my implementation in my page.
function del(){
var a = document.getElementById('display').value.toString();
a = a.slice(0,-1);
document.getElementById('display').value = value;
}
display is the input element id.
Marked as helpful
1
RedMwp• 790
@RedMwp
Posted
@mtjeth thank you very much for your solution, i really appreciate it
0