User:Callofduty4/chat.js

function sendButtonOnClick {   var textToSend = $('#Write').children('.message').children('textarea[name=message]').val; var chatEntry = new models.ChatEntry({       roomId: this.roomId,        name: wgUserName,        text: textToSend    }); mainRoom.socket.socket.send(chatEntry.xport); $('#Write').children('.message').children('textarea[name=message]').val(""); }

$('#Write').children('.message').children('textarea[name=message]').css("width", "70%"); $('#Write').children('.message').append('SEND');