Checkboxes That Generate Images

127 Views Asked by At

I need help with a script that when I check a checkbox it generates an image (or multiple images if multiple checkboxes are selected).

I think I have this part down but I need the script to keep the checkboxes to the left side of the images and when I add more checkboxes (like 20 or 30 more) the first images doesn't start after the last checkbox. I need the images to start at the top of the webpage.

My current code is below:

You can play with the example here: http://jsfiddle.net/psyho/nrdnx/

1

There are 1 best solutions below

2
On BEST ANSWER

you can put the checkboxes and images in a container like so: http://jsfiddle.net/nrdnx/9/ I hope this helps, as I wasn't completely sure about what you were asking.