How to use element id in a variable to inject js

I need to inject js script, if I give hardcoded value for element id its working fine in a script. if I changed it as variable , its throwing an error?


Can you show how you are trying to use…


here it is…


is the idvalue string?

and it accept one or two only…and if you want to pass two strings then append them with comma and send them and then split