I have a javascript variable 'option' And I want to use java variable with javascript variable; var value="${option}" Here option should be javascript variable.
I've tried var value="${"+option+"}"; but this didn't worked.
It could be the quotation marks. Please try:
var value='${"+option+"}';