Get the content inside div
say i have the following div
like for inputs, in js u can get the value using
input.vlaue
how can I get the value or content of the div which is 420??
i see values don't work for divs13 Replies
textContent/innerText ?
yaa i searched on gpt and it told me the same
tnx ❤️
btw, the value will be a string if I'm not wrong ryt?
probably 🙂
ok tnx
Div class button..... <Button> ....
yeah, don't use divs as buttons, it's terrible for accessibility.
they left the thread... @ʙᴏᴏʙ 2.0 ☝️
lol
>.>;; pulling back in cause of the importance of this lession
divs, a != buttons!
I was thinking the same thing 😳
which thread ;-;
i was making a calculator
and I just used divs for the buttons xD
ahaha
ok sure
just... don't
use buttons for buttons
sure
I won't
xD