View Single Post
Old 03-12-2012, 05:38 PM   PM User | #3
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
Code:
  $("#answer").text("Your Name Is: " +nick);
        $("#answer").fadeIn("slow");
to

Code:
  $("#answer").html("Your Name Is: " +nick+"<br>);
        $("#answer").fadeIn("slow");
+"<br>" won't work with .text(), you need to use .html()
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote