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
nguyen hung
NA
277
0
why \r\n can not break new line with hidden field?
Mar 5 2021 10:52 AM
I have this script:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<p>Click the button to display an alert box.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var aaaa = $("#custId").val();
confirm(aaaa.toString());
}
</script>
<input type="hidden" id="custId" name="custId" value="Test\r\n Demo">
</body>
</html>
why \r\n can not create new line??
Thanks!!!!!!
Reply
Answers (
3
)
attach file in outlook using mailto function
Run Multiple URL?