I am trying to write a function that reads the value of the input data and determines if the space was used during creation. I'm not trying to trim anything - just see if he needs the ability to trim.
I donโt even know where to start, so I donโt have any code to view. Please help if you can!
I tried this solution, but it does not work (I do not think I am using .has () correctly)
if ($('#id').val().has(" ")) { alert('has spaces') }
source share