Here’s a quick note on mobile browsers like Android, WebKit. Based on my testing, it seems that string trim() function is not supported.
I was trying to do something like:
if(mystring.trim()==”0″) etc…etc…
That won’t work in mobile browsers for some reason but you can do something like it using match instead: if(mystring.match(/0/)) etc…etc…
I don’t know exactly why trim() isn’t supported fully on mobile browsers but for those of you who have problems with your website that works on desktop browsers but