Asked by ank5
at 2024-11-03 09:09:25
Point:500 Replies:4 POST_ID:828774USER_ID:11616
Topic:
JavaScript;Web Languages/Standards;Scripting Languages
I need to write a Javascript function which accepts two comma separated values
Now both these parameters could have multiple values each separated with a comma.
Example, folderObjIDs could have 'a,b,c' and docObjIDs could have 'c,d,e'.
I need to check which value is common in both the parameters, and then alert it to the user ('c' in the example above).
Can someone please let me know how this can be done?
Thank you