Jel - JavaScript Enhancement Library API Documentation | Function Index
Checks if a given element has a given parent element in the DOM tree. Hides the results of the validation, and also any inlines associated with previous validations (if visible). The method called to hide the DOM container that validation results are displayed in (controlled via the resultsContainer option in constructor). checks if a string value is equal to another, comparing both as integers gets the Swatch internet time for the given date object checks if a string value is greater than or equal to another, comparing both as integers checks if a string value is greater than another, comparing both as integers checks if a string value is less than or equal to another, comparing both as integers checks if a string value is less than another, comparing both as integers checks if a string value represents a negative integer checks if a string value is not equal to another, comparing both as integers checks if a string value represents a positive integer checks if a string value falls within a given range, comparing as integers checks if a string value represents a positive or negative integer Checks if a given field is “empty” within the form. For textareas and text inputs, this is when the field value is the empty string. Checks whether a given form element is an input of type checkbox Checks whether a given form element is an input of type hidden Checks whether a given form element is an input of type radio Checks whether a given form element is an input of type text checks if a given year is a leap year Checks whether a given form element is a select Checks whether a given form element is a textarea checks if a string value is less than or equal to another, assuming a specific type (and format if the type is a date) gets a string representation for a given number padded out with leading zeros to a given length checks if a string value is less than or equal to another, assuming a specific type (and format if the type is a date), and is case insensitive if type is string gets the specified number of characters from the beginning of a given string checks if the length of a string is equal to a specific value checks if the length of a string value is greater than or equal to a specific value checks if the length of a string value is greater than a specific value checks if the length of a string value is less than or equal to a specific value checks if the length of a string value is less than a specific value checks if the length of a string is not equal to a specific value checks if the length of a string is between a lower and upper bound (inclusive by default, but can be overridden) checks if a string value is less than another, assuming a specific type (and format if the type is a date). checks if a string value is less than another, assuming a specific type (and format if the type is a date), and is case insensitive if type is string removes whitespace characters from the beginning of a given string gets the ante/post meridiem (am or pm) for a given hour 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 |