disabling multiple space in text area javascript
To avoid typing multiple space in text ara im calling a function on onCLick, on keyup and wrtten the code below

 var val = document.getelemntByID('trmp');
 val.value = val .value.replace(/ +(?= )/g,'');


this is working fyn in Firefox, in IE7 its working, but causing some other problem , like select a word and delete it will delete entire text ara content


disabling multiple space in text area javascript
===

To avoid typing multiple space in text ara im calling a function on onCLick, on keyup and wrtten the code below

 var val = document.getelemntByID('trmp');
 val.value = val .value.replace(/ +(?= )/g,'');


this is working fyn in Firefox, in IE7 its working, but causing some other problem , like select a word and delete it will delete entire text ara content

