Exercise List: Procedural ColdFusion Code Complete (Phase I)

<!--- Progressively enhance page. --->
<script type="text/javascript">
 
	$(
		function(){
 
			// Hide all the joint properties.
			$( "div.jointproperties" ).hide();
 
			// Show the joint properties for joints that
			// have already been selected.
			$( "label.joint:has( :checked )" ).next().show();
 
			// Hoop up the clicks for the joint checks.
			$( "label.joint input" ).click(
				function( objEvent ){
					var jInput = $( this );
					var jProperties = jInput.parent( "label" ).next();
 
					// If this is checked then show the actions.
					if (this.checked){
						jProperties.slideDown( "fast" );
					} else {
						jProperties.slideUp( "fast" );
					}
				}
				);
 
		}
		);
 
</script>

For Cut-and-Paste