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 …
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 …
My question is very similar to "Trim text to 340 chars" but in jQuery. It sounded very straight forward but when I searched around I couldn't find any reference for it.
Ok, I have a div $('#content') I want to …