You could do something like this: $("#mySpan").find(":input").removeAttr("checked").val("").hide()
- Richard Richard D. Worth http://rdworth.org/ On Thu, Aug 28, 2008 at 10:11 AM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > Hi there. I recently discovered jQuery and it appears to be an > excellent library. I started looking at libs because I have a specific > problem I want to solve easily. I want to an able to show and hide a > <span> on my page. The span may contain some form elements like > checkboxes for example. It is possible that a CB could have been > selected, and then the event the causes the span to hide comes into > play (they answered another question or whatever). If this is the > case, I want to hide the span but also uncheck (or whatever) the > elements in the span. > > Is there an easy way to do this with jQuery. I am just starting to > read through the docs, and have purchased a couple of books, but of > course, I have a timeline to beat. Any suggestions or pointers to docs > would be much appreciated. > > Thanks, > > Peter > >