0

How do you make value attribute stay active after clicking on the input tag

I'm building a web based calculator . It allows you to input numbers using buttons . Each time you hit a button it calls a function which updates the value tag of the input tag but the problem is when you type into the input tag and edit the information you can no longer add values . Basically the buttons don't work . No online code samples available

3rd May 2022, 7:26 PM
Richard
Richard - avatar
2 Respuestas
+ 1
Problem is solved now
5th May 2022, 7:55 AM
Richard
Richard - avatar
0
Add 'readonly' attribute to the <input> element. It will prevent user from typing into it. I think you need to add the code bit link in post Description. Otherwise nobody knows why your buttons aren't working. https://www.sololearn.com/post/75089/?ref=app
4th May 2022, 11:51 AM
Ipang