Jump to content

textarea carriage return


vbnullchar

Recommended Posts

im creating a chat script and i have a textarea where users enter their message, pressing the enter key should send the message, now the problem is the cursor does not reset to its original place just like in other instant messenger.

 

is this correct?

 

document.getElementById('msg').value=""

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/56647-textarea-carriage-return/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.