TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Darshan Kshirasagar
NA
317
68.7k
JavaScript String Data Format loosing when load to Div Tag
Jan 24 2019 4:37 AM
Hi All,
I have textbox as formatted as given in PrintTest.txt file in RAR file.
But when i try to load TextBox Data same to Div tag then it not proper as in textbox not with alignment its not .
Code is Below:
@Html.TextAreaFor(m => m.ReportText, htmlAttributes: new { @class = "ReportText", @id = "txtReport", @wrap = "off", @readonly = "readonly" })
<div id='DivIdToPrint'>
</div>
Javascript :
var mydiv = $("#txtReport").val();
document.getElementById("DivIdToPrint").innerText = mydiv;
Please help me
Attachment:
PrintTest.rar
Reply
Answers (
2
)
Can anyone help to find this..
array value in encode json in javascript anyone?