-1

i am new to javascript, now i am making calculator using javascript, how to display the text using both DIV and INPUT tags. I tried using div but it's not working. how to fix it.

4

1 回答 1

3

将其用于 div

document.getElementById('divid').text="put your text"

对于输入字段

document.getElementById('inputid').value="put your text"

希望这可以帮助...

于 2013-10-16T10:14:43.530 回答