Actually my question is similar to
this question
The first answer for that question is quite usable for my work, but still have some problems when making it suit for me.
This is how my web page works.
I have a registration form for ski shop
One people can apply for many people(eg. father can apply for his family)
So depending on the count of members registrations forms will be generated.
So each registration form as added as a row of a table..
So actually this happening with a loop.Similar code is executing at run time.
HTML table and other widgets also created in run time with C# code.
So this is about my website.
My question is how to change the javaScript in this questions to handle dynamic ids of the image viewer and image choosers..
According to the image there is three forms.
So file chooser ids are 'file_img_0','file_img_1','file_img_2' and image viewer ids are 'user_img_0','user_img_1','user_img_3'.
So these IDs are automatically generated with the code according to the numbre of family member
So in this case how have several IDs,but in previous question it deals with single image.So the id is a distinct one.But here there are several image chooser IDs.So can anyone help me to adjust the javascript in previous question to fit to my problem or give me new solution.