I was trying:
Code:
<script>

function testtrim(value) {
	
	alert(value.trim());
	
}

testtrim("Alex ");
</script>
The javascript don't work, my firebugs says:[value.trim is not a function]
how to simulate an trim function ?

thanks.