--- --------------------------------------------------------------------------------------- ---- Blog Entry: jQuery Demo: Mad Libs Word Game Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:623.view Date Posted: Apr 3, 2007 at 7:36 PM ---- --------------------------------------------------------------------------------------- ---> // This will fire when the document is ready. $( function(){ // Get a pointer to the mad libs container. jMadLibsContainer = $( "#madlibs" ); // Get all of the madlib elements (defined by Span // objects with the rel=madlib). jMadLibs = $( "span[@rel='madlib']" ); // Create a form element and wire up the onsubmit // to fire the show mad libs and then return false // so that the form doesn't submit anywhere. jMadLibsForm = $( "