Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 587 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 587 Bytes

jquery.strFunctions

Simple jQuery string functions

Usage

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