0

How to add content to a horizontal scrollable div with javascripts whiteout breaking the content into new block

I have a horizontal slider I wish to add contents to with javascripts without breaking it into a new block. I've been having difficulties handling that. Any help will be valuable

22nd Apr 2021, 6:39 PM
Ondape Valery
Ondape Valery - avatar
3 Respostas
+ 1
You can use the following: if the div has an id: document.getEementById("myDiv").innerHTML = "put what you want here"; Or If it is has a class name: document.getElementsByClassName....then do the same as above.
23rd Apr 2021, 1:30 AM
Brian Snelling
Brian Snelling - avatar
+ 1
Ondape Valery Can you show me your code? That's usually how I work best. I'll just read it over and delete it and try to do my best to re-write a solution. Though I have worked about 9 hours today so please provide me your code then I'll look it over tomorrow at about 10-12 PST. Ya know in my opinion, solving others problems elevates my knowledge exponentially. Learning JavaScript and query libraries is like 80% fixing problems.
23rd Apr 2021, 8:06 AM
Brian Snelling
Brian Snelling - avatar
0
Brian Snelling I'll try that although I doubt it will work coz I already did that white jquery html, append, and after() but all of them broke out from the horizontal
23rd Apr 2021, 5:05 AM
Ondape Valery
Ondape Valery - avatar