Hi to all
I am using following line code to trim the unwanted space in string on client side whatever the enduser will type into the textbox
Collapse
when this line execute by the browser on clinet side
it shows the error "Object doesn't support this property or method Error"
How to use the trim() function in javascript
Please Help me
Thanks in Advance...
I am using following line code to trim the unwanted space in string on client side whatever the enduser will type into the textbox
Collapse
Code:
if(document.getElementById("txtUserName").value.trim() == ""){
..........
..........
}
it shows the error "Object doesn't support this property or method Error"
How to use the trim() function in javascript
Please Help me
Thanks in Advance...
Comment