What I am trying is if a user has entered a value with multiple spaces I want them to copy it to a span. But the issues is span
eliminates all spaces. So how can I achieve this functionality.
What I have tried;
Html
<span class="span"></span><br>
<input type="text" value="1 1" />
CSS
$(document).ready(function(){
var inputVal = $('input').val();
$('.span').text(inputVal);
});