0

Is there a way to assign a value to image?

My problem is I have a drag and drop html

I have 10 pictures

From the 10 available pictures, I have to drag and drop maximum 3 pictures to the slots

How do I know the name of the 3 pictures I have put in the slots?

any help would be appreciated..thanks

Kevin
  • 63
  • 4
  • 11
  • Have you tried adding ID to the images, for example: ... – ChaveVrey May 19 '14 at 06:39
  • how do I get the image id that I put in the slots? – Kevin May 19 '14 at 08:59
  • Im not really sure what you intend to do, so I am guessing here. You might have to use some jquery, have a look at this link: http://www.tutorialspoint.com/jquery/jquery-attributes.htm – ChaveVrey May 20 '14 at 07:06
  • http://stackoverflow.com/questions/7935456/input-type-image-submit-form-value This code seems to do what you might be looking for:You could use a radio button/checkbox and set it to hide the button in css and then give it a label with an image. input[type="radio"] {display: none} input[type="radio"] + label span {display: block} Then on the page: And then set it to submit using javascript: document.forms["myform"].submit(); – ChaveVrey May 20 '14 at 07:10

0 Answers0