Related questions
Trim to remove white space
jQuery trim not working. I wrote the following command to remove white space. Whats wrong in it?
var str = $('input').val();
str = jquery.trim(str);
console.log(str);
Fiddle example.
IE8 and JQuery's trim()
I am making use of trim() like so:
if($('#group_field').val().trim()!=''){
Where group_field is an input element of type text. This works in Firefox but when I try it on IE8 it gives me this …
How to use jQuery's trim() function
As discussed in many questions on stack - IE 8 wont accept .trim(), but the jQuery framework takes care of that.
I don't know how to translate my function to use that version of trim (I thought I was already using …