0
How does this code work in a calculator to clear input?
<span class="num clear" onclick="document.cal.txt.value = ''">C</span>
1 Answer
0
document.cal.txt.value='' sets the input named 'txt' in the form named 'cal' to '' which is an empty single-quoted string