I want to pass the php variable value in onClick function.
When i pass the php variable, in the UI i am getting the variable itself instead I need the value in the variable.
Don't mix up " and ', they both have importance. If you use some " in your string and don't want to use the same character as delimiter, use this trick: