View Single Post
Old 10-03-2011, 12:21 AM   PM User | #14
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
no clue where the data came from but with a textarea you'll want to use .val() not .text()
i think you want something like this:

Code:
$('.saveButton').live('click',function() {
var textareaval = $(this).parent().find('textarea').val()
$(this).parent().parent().html('<div class="info">' + textareaval + '</div>').show();
$(this).parent().remove();
});
__________________
- 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

Last edited by DanInMa; 10-03-2011 at 12:48 AM.. Reason: added show
DanInMa is offline   Reply With Quote