Unterminated String constant javascript error while handling textarea in ja
843840Feb 12 2009 — edited Feb 13 2009hi,
my code is -->
<textarea class = "ipfield" rows="2" cols="80" name = "ruleDesc" id = "ruleDesc" onchange="setIsEdited()"><c:out value="${ruleDesc}" escapeXml="false"/></textarea>
on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object
code is document.getElementById('ruleDesc').value = '<c:out value="${ruleDesc}" escapeXml="false"/>';
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.