javscript for allow enter key only in multilne textboxes
Hi
I using the following code to block enter key
if (window.event.keyCode == 13)
{
event.returnValue=false;
event.cancel = true;
}
but it making problem on my multiline text boxes only with a single line..
How to allow Enter key default behaviour for multi-line TextBox
sudhi
Last edited by sudhi; August 8th, 2011 at 01:38 AM..
|