I have a JavaScript variable that I'm using PHP that is shown in the page source:
var db_1 = 'C:\this\path';
When I set the value of the text field with this variable as follows:
$('#myinput').val(db_1);
The slashes disappeared, and only the remaining characters remained!
Why is this and how can I return slashes to
Thanks everyone
javascript jquery
Abs
source share