Saved X
Google login
SignUp with Email
X

Javascript remove first space in string

theindreshverma ( Edited  Sep 30, 11:29 am )
Login

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>

Sourcecode Tags

More Sourcecodes

More Sourcecodes