Category Archives for jquery
stopPropagation and preventDefault jQuery Methods
Simple demo of stopPropagation() and preventDefault() jQuery methods. Often these two methods are used together. And, often their function and use is confused or used when not needed thanks to copy and paste.
Jquery Datepicker with Masked Input and Current Time
Examples of using a jquery ui datepicker with masked input and current time as input values. Input is editable for manual change of date and/or time. Help in this post can from Adding time to jQuery UI Datepicker by Derek Allard and the Masked Input Plugin 1.3 by Josh Bush. There are two functions: getTimeAmPm [...]
Using jQuery Datepicker and Dialog Box To Select Date Range
Using a jquery datepicker in a jquery dialog box to select a date range is a handy, slick way of having users input dates. Date handling and validation in forms when input by the user can be tricky at best. Here a modal dialog box will be used to allow the user to select a [...]
Targeting Dynamic Element IDs with jQuery
When elements are added dynamically through a scripting language (usually by a database pull) they can have sequential identifiers in one or more of their attributes. For this example, a series of checkboxes that, when checked, will populate an input box by matching up the numeric portion of the id attribute. To make the matching [...]
Using jQuery Autocomplete When Remote Source JSON Does Not Contain ‘Label’ or ‘Value’ Fields
If the jQuery autocomplete plugin uses a remote datasource, the autocomplete expects it to return json data with a ‘label’ and/or a ‘value’ field. If you return one, either ‘label’ or ‘value’, the autocomplete uses it for both the suggestion menu and the value of the input box. If you return both, it uses the [...]

RSS
Twitter