Hello everybody, and happy easter
I would like to know how to search in a list for a specific condition. Obviously the list is not in the database, but it’s actually the returned list from the Multifileuploader plugin.
Now I have thought to use the each’s item: however for some reason it doesnt work.
The specific example is:
I want to check on the files that i upload on the multifile uploader , the format .jpg. So if I find in the list one filename that contains .jpg , it should change color of the group itself.
If I apply the logic on the first item, it works. I.e Multifileuploader. list.value:first item contains ‘.jpg’ This works.
If i apply the logic on the :each items, it doesnt.
Everytime I only upload one file to see if it works.
Where am I wrong?
Thank you for your help.