How to get a display images from a folder.
Hi.
Have been playing w/retrieving and adding content to the DOM. For example get the text from a .text and adding it to divs using .load.
I'd like next to retrieve images and add one image per <p> to a div
So if they div had three paragraphs the code should add an image each.
or
simply retrieve each image and list them all in one divs.
so far i only managed to do it one at the time
- $("#ct0").append('<img id="sidbarImg" class="sidebarImg" src="imgs/coding-arts-rwd.jpg" />');
or
I'd like to be able to iterate through the image folder. And get a list of all the imges there. Been googling for a while w/not much luck.
Thank you
D