this is my jquery code. http://jsfiddle.net/geekrule/ZnAvP/1/
as i select an image,a text-box is added with the image’s source and a ‘name’ property is added.
now when i unselect the image,i want the ‘name’ to be updated.
for ex:
i select images 1,3,4,5
corresponding value of 'name' of input boxes will be 1,2,3,4
and now when i unselect images -3,4
value of 'name' should be 1 and 2(this part is what i am stuck at.the values i get are 1,4).
they are not getting updated.
hope you understood the problem.please help me out. thanks in advance
this is my jquery code. http://jsfiddle.net/geekrule/ZnAvP/1/ as i select an image,a text-box is added
Share
In my opinion the simpler solition is to re-generate textboxes on each image selection: