Jump to content
Killersites Forums

Unterminated String constant javascript error while handling textarea


Recommended Posts

hi,

 

my code is -->

 

 

on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object

 

code is document.getElementById('ruleDesc').value = '';

 

but m getting javascript error while setting tht one

 

i view tht source in IE.

 

that is because of

it looks like ->

document.getElementById('ruleDesc').value = 'this is the data from database

ok ?'

 

if there is \n in database it will go to next line because of that ' after document.getElementById('ruleDesc').value is not completed

 

can u please help me about that problem.

 

thanx in advance.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...