September 28, 2017
There are times you need to change an element’s CSS classes at runtime. But when changing classes, it’s sometimes best to apply style details conditionally. For example, imagine your view has a pager. Pagers are often used to navigate larger sets of items. When navigating, it can be helpful to show the user...
September 29, 2016
This is useful in situations when you want your page elements to change in response to user actions.
Example uses include:Showing or hiding a menu
Highlighting a form error
September 13, 2016
In a recent thread on SitePoint’s forums, some code was given to let one dropdown box control when another dropdown box is visible. Even though the code worked just fine, I realized that it left much to be desired. It was brittle and incapable of withstanding even small changes to the accompanying HTML.
Here is t...