Link to home
Start Free TrialLog in
Avatar of Mr_Splash
Mr_Splash

asked on

JavaScript - escape an apostrophe

Hello,

I'm having problems with the javascript below.

It's failing at the apostrophe as it's ending the onclick there.

Can anyone tell me how I can pass the string keeping the apostrophe?

Thanks
onclick='editRecord(50,"It\'s round",17);'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial