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/

Reply via email to