Simple jQuery string functions
Requires jQuery
Referencing the script
<script src="/path/to/jquery.strFunctions.js" type="text/javascript"></script>
Using the script
$.strContains("string to search", "to"); // true
$.strContains("string to search", "not there"); // false
$.strStartsWith("string to search", "string"); // true
$.strStartsWith("string to search", "search"); // false
$.strEndsWith("string to search", "search"); // true
$.strEndsWith("string to search", "string"); // false