Thanks Chris, perfect, that works great. Curious about the each method, why is that necessary, if there will always only be one checked radio button with the name caltype? Is that because there has to be some method to operate on the element?
Pardon my noobness... ----- Original Message ----- From: Chris Domigan To: jQuery Discussion. Sent: Thursday, March 01, 2007 9:52 AM Subject: Re: [jQuery] Load method help Josh, Using .load() within the scope of $(document).ready() is redundant, since everything in that block is performed on page load anyway. Also (1) you can use the :checked selector, and (2) this.value will work just fine and saves the jquery call. Try this: $(document).ready(function() { $("input:radio:[EMAIL PROTECTED]").each(function() { if (this.value == "private") { $("#pubbox").hide(); } else { $("#pubbox").show(); } }); }); Cheers, Chris ------------------------------------------------------------------------------ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/