HOME BLOG PORTFOLIO PHOTO CONTACT Admin Login
trim function in javascript

<script>
var x= ' jay bharat ';
alert(x.length);
var y = x.replace(/^\s+|\s+$/g,"");
alert(y.length);
</script>

   Share on Facebook

Page views:792