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
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.
+ 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.
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