How to concat special characters as sting to a text in javascript? -


how concat character \ string text in javascript? want write code line in javascript:

var x = "$$\" + $("#formul").val() + "$$"; 

how this?

escape backslash:

var x = "$$\\" + $("#formul").val() + "$$"; 

the problem have backslash escape character. escapes following " character string doesn't close.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

c# - Using multiple datasets in RDLC -

monitor web browser programmatically in Android? -