Removing all whitespaces from string using Regular Expression in jQuery

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 221
<script type="text/javascript">
$(document).ready(function()
{
var str = ' Welcome To Dot net funda dot com '
var newstr = str.replace(/\s/g,'');
alert(newstr);
})
</script>

Comments or Responses

Login to post response