Title: access text inside panel Post by: crosemffet on January 19, 2016, 05:07:38 PM hello everybody, and thanks in advance for your support.
I need to add some text inside panel (for chat application). each time a new chat message is received, the panel should refresh its content adding the new message. for the first message, I use: $('#mypanel').panel({content: 'first message'}); this works ok. the problem is, when a second message comes, I need to add it to the current content... so, how should I write the code to add the new content to the existing one...? or maybe gets the current content to add it in a variable, make the sum and then apply it...? thanks for your support !. Title: Re: access text inside panel Post by: jarry on January 20, 2016, 01:50:27 AM You just need to call 'append' to append message.
Code: $('<p>first message</p>').appendTo('#mypanel'); |