Set variable using a case statement

Case statements are obviously a tidy alternative to using simple if/else statements, and I recently found myself in a position where I had a good opportunity to use one. First off, let’s look at the syntax. In the above syntax example, we have the variable…

Easily show/hide a web control

An easy way to show and hide a control is to use a combination of the display:none CSS property, and the .show() and .hide() JQuery methods. Let’s say you have a Yes/No set of radio buttons, and you want a show a simple message if…