apostrophe truncating value in input field

webseoua

New Member
I have an input box on a page which is reloaded via ajax call (content is refresh). The problem is when the input box has a single quote in it the remaining value is truncated, how can I fix that problem?\[code\]myVal = <-- its coming dynamically from db and when it contains values like "It's me", next time page reloads It just show "It" in input box$('#myInput').val(myVal);//after setting value and doing some other things, this content is reloaded\[/code\]
 
Back
Top