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?

@logesh_kumar1

Can you show how you are trying to use…

Cheers

image
here it is…

@logesh_kumar1

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

cheers