I have some input
<input id = 'some_id' type='text'/>
I want to set value with backslash, for example:
$('#some_id').val('someval \')
and I'm getting error:
Uncaught SyntaxError: Invalid or unexpected token
How can I show string value with backslash in input ?