JQery helper methods
In this post I am gonna give you some of the JQuery helper methods which I am using in my application frequently. Below are some of them , with explanation: Usage: Copy all the codes given at the end of this post to a js file and add a reference of it to your page. Or Click here to download the file 1. Remove Special Characters from a string: var str="Hello%how%are$you"; str.removeSplChars(); output : Hellohowareyou 2. Trim from left: var str="%hello"; str.trimStart('%'); Output: hello 3. Trim from right: var str="hello%"; str.trimEnd('%'); Output: hello 4. String Contains: var str="welcome to SPShell. The SharePoint blog"; str.contains("SharePoint"); Output: true 5. IsUndefined. var undefinedVar; IsUndefined(undefinedVar); Output: true 6. isIEBrowser (check is browser is IE) isIEBrowser(); Output: false (my browser is chrome when I excecuted this code) . 7. checkChrome c...