0
Why my delete button doesn't work?
9 Réponses
+ 2
If you want to write it in your way this is how you can do it.
https://code.sololearn.com/Wd4oaoJJHH3Y/?ref=app
+ 5
get the element itself not its value
https://code.sololearn.com/WWTi509CTQQ8/?ref=app
+ 3
I don't know for sure, but if I guess I think it's because 'getElementById().value' is only for getting the value, not assigning so you have to do it like 'y.value = str' to assign values.
+ 1
Thnak you so much
0
if I get just the element it will errors
0
I can write my code in your way but I want to write it in my way
0
Can you tell me the reason plz
0
whsn I write x = str it doesn't work but when I write y.value = str it works