I have input type text for user to edit their text
<input type='text' id='about'>
$('#about').val('<?PHP echo $about;?>');
the reason I didn't use value is because I have a reset button can reset the form.
<input type='text' id='about' value='<?PHP echo $about;?>'>
if I place inside of value, the reset button will not working.
My problem is if user enter the text with ' it will end the line from my script
ex.
$('#about').val('It's cool');
any way to solve this problem?
$('#about').val('It\'s cool');$('#about').val('<?PHP echo addslashes($about);?>');