Skip to content
Advertisement

How to get data form Same with many elements as separate set for each input field?

I have a with 3 tags as given below;

JavaScript

I enter record of 2 persons. I select 2 images for 1st person and 3 images for 2nd person. When I submit form then I receive data as following;

JavaScript

Problem is, How can I identify which images belongs to which person. I need data as separate set for each person as following

JavaScript

Please help in this context

Advertisement

Answer

I have solved my problem myself. We could not send data as separate group unless we change name attribute. I have fixed by changing the name onClick

JavaScript

JQuery

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement