0

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/

ajax333221
  • 11,436
  • 16
  • 61
  • 95
  • keep in mind that one should include the code in the post because links die and/or people don't always want to leave this website – ajax333221 Apr 23 '12 at 04:05

1 Answers1

0

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.

Ryan Potter
  • 835
  • 1
  • 11
  • 25
  • @Drawdesign, sorry I wasn't more clear...but you nailed it anyway. You're a saint. Thanks! – user1350433 Apr 23 '12 at 04:24
  • thanks so much for your answer, it worked perfectly but I was wondering is there a way to "Save" the changes I make when selecting the checkboxes? Currently if I select a checkbox and it generates an image, as soon as I leave my site and come back the changes are gone. I'm sure that's a beginner question but I can't seem to find the answer on this form. Many thanks in advance! – user1350433 Apr 29 '12 at 06:32