<script>
$(document).ready(function() {
$(function() {
$('.ClassName').blur(function() {
$(this).val(
$.trim($(this).val())
);
});
});
});
</script>This code snippet for Remove Initial Blankspaces For Username and Password.
