Javascript remove first space in string

Javascrpt str.trim() method

<h2 align="center">Javascript remove first space in string</h2>
<input type="text" id="i" />
<script>
var x = " This is javascript";
document.getElementById('i').value = x.trim();
</script>

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X