Jel - JavaScript Enhancement Library API Documentation | Index
checks if a string value is not equal to another, assuming a specific type (and format if the type is a date) checks if a string value is not equal to another, assuming a specific type (and format if the type is a date), and is case insensitive if type is string converts a string of words which are camel-cased, dash-delimited, underscore delimted, or a combination into a string of dash-delimited words gets a Date object representing the current date, with an optional format string. checks if a string value is equal to another, comparing both as numeric (float or integer) checks if a string value is greater than or equal to another, comparing both as numeric (float or integer) checks if a string value is greater than another, comparing both as numeric (float or integer) checks if a string value is less than or equal to another, comparing both as numeric (float or integer) checks if a string value is less than another, comparing both as numeric (float or integer) checks if a string value represents a negative float or integer checks if a string value is not equal to another, comparing both as numeric (float or integer) checks if a string value represents a positive float or integer checks if a string value falls within a given range, comparing as numeric (float or integer) checks if a string value represents a positive or negative float or integer gets the English ordinal suffix for a given day (st, nd, rd, th) gets the English ordinal suffix for a given number (st, nd, rd, th) parses a date string into a JavaScript Date object assuming a specified date format. returns the plural of a given string, based on a given count. checks if a string value falls within a given range, assuming a specific type (and format if the type is a date) checks if a string value falls within a given range, assuming a specific type (and format if the type is a date), and is case insensitive if type is string Registers a custom error message and custom inline error message for a given fieldId, and className (validation class). displays a given field as being valid, that is, NOT a validation culprit. Shows all of the form fields as non-culprit. hides an inline element for a field that is likely no longer a validation culprit. remove the file extension from a given string Removes the specified fields from the form validator. gets the repeat of a string for a specified count checks if a string value is not an empty string gets the specified number of characters from the end of a given string removes whitespace characters from the end of a given string sets the value of the object described by this ObjectPath Sets the value of a form element to a given value, regardless of the type of control it is Displays the results of the validation, based on options specified in the constructor method. The method called to display the validation results as a JavaScript alert, if the options specify this (see constructor for more). The method called to display the validation results inside a DOM container (controlled via the resultsContainer option in constructor). checks if a given string begins with another string, with the optional case-insensitive comparison Attempts to submit the form associated with this validator, by running all validation, and submitting if successful. Swaps a given class name on an element to a different class name, with a check to work out which class name an element currenly has first. converts a string of words into the equivalent title cased word gets the float value of a given string in manner safe for arithmetic expressions gets the integer value of a given string in a manner that is safe for arithmetic expressions removes whitespace characters from the beginning and end of a given string gets the twelve hour value for the given hour updates all selectors with their current values Validates the form associated with this validator, and sets up validation results. Validates a single given field in the form associated with this validator, and sets up the results for just this field. checks if a given day, month, and year combination is a valid date in the Gregorian calendar |