Recent Posts
आर्च लिनक्स को कैसे इंस्टॉल करें?
Torrent links general
how to ddos a site?
Machine learning with C±+
Kalej doesnt want me to do shit.
Making a community of people who want to code and ...
/AI/premiums
Every software is open source of you know assembly
sharing doxxing/hacking tutorial
It's over
No Innova-ck
archive.today prolly getting attacked by glowies
why jeets dont seed ?
making a glow-proof smartphone
alternative frontends
Privacy Tools
Techsappot jara idhar aana
Bangladesh: Govt officials, student ‘activists’ ho...
phone under 20k
Privacy tools thread
2025 telephone suggestion
Chinese are absolutely dominating AI
Get in here b-bros
Bharatchan runs on awa or azure?
Spyware
WebDev general
new feature request Dayush pls read
The Chad programming language
THIS BOARD IS SOO SMUG
Sketch - A simple 2D graphics library in C
/torrent/
Post setup pics
How to learn Computer Science by yourself?
pajeetware
I had a dream
rugged phones
WebDev general
51OZdE
No.316
Making this thread for webDev, post anything related to it, whether queries or something new or any help related to programming, even though there are discord servers but sometimes you dont get good enough response to your problem, so i am making a thread here as i am personally learning it. Currently, i am using odin project to learn it and i am on calculator project in foundations.
51OZdE
No.317
Right now i am having a problem, i am trying to access content of an HTML element and then store it inside another element and display it, for that i am using innerText property but in autosuggestions it isnt displaying it, i thought it is because i am trying to access it inside an eventlistener but i also tried it in global scope and problem still remains.
51OZdE
No.319
>>318
Dont shit up on my thread dirty , not everything can be solved by chatgpt. i have already tried it.


XKQfIH
No.321
>>317
use appendChild()


XKQfIH
No.322
>>321
Though that's in case you are creating another element dynamically.
You can access content through either textContent or value depending on the element. Value or textContent can be used to update the values.
Validate the target element to ensure it exists.
nYAfi4
No.323
>>321
you didnt understand my problem it seems, i am talking about this, in suggestion list many keywords doesnt appear, i had to use {once: true} and in that once didnt appear, i type it whole but after that it started appearing, it happened same for innertText, textcontent.


XKQfIH
No.324
If you have any code snippet, share it by using markdown as pic related
statements
nYAfi4
No.325
>>323
like here innerText isnt appearing.


XKQfIH
No.326
>>323
aah mb, try pic related extension if you aren't using already.
If you want to read about DOM manipulation go through js.info https://javascript.info/ DOM section (browser)
MDN has a quick read for the same https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/DOM_scripting
nYAfi4
No.327
>>326
okey, thanks


XKQfIH
No.328
>>325
Auto suggestions there won't work cuz, suggestions are based on the associated objects.