Thanks for your input.  Here is the relevant HTML (dynamically
generated)

  <input checked="checked" class="is_preferred_email"
id="record_person_emails_10001_is_preferred"
name="record_person_emails_10001_is_preferred"
onchange="setPreferredEmail(this);" type="checkbox" value="1" /><input
name="record_person_emails_10001_is_preferred" type="hidden"
value="0" />

 <input class="is_preferred_email"
id="record_person_emails_10021_is_preferred"
name="record_person_emails_10021_is_preferred"
onchange="setPreferredEmail(this);" type="checkbox" value="1" /><input
name="record_person_emails_10021_is_preferred" type="hidden"
value="0" />

 <input class="is_preferred_email"
id="record_person_emails_1223301735390_is_preferred"
name="record_person_emails_1223301735390_is_preferred"
onchange="setPreferredEmail(this);" type="checkbox" value="1" /><input
name="record_person_emails_1223301735390_is_preferred" type="hidden"
value="0" />

On Oct 5, 7:22 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> There is absolutely no way you have the selector setup correctly
>
> what is the HTML?
>
> On Oct 5, 8:53 pm, sydneyos <[EMAIL PROTECTED]> wrote:
>
> > I have the following expression where is_preferred_email is a class
> > assigned to three elements in my page:
>
> >         $j(".is_preferred_email").each(
> >             function(i) {
> >                 this[i].checked = false;
> >             }
> >         );
>
> > if I put "alert(this[i].name);" in the function, I only ever get one
> > message, which is consistent w/ the checking/unchecking behavior I
> > see.
>
> > Likewise, a call to $j(".is_preferred_email").size() returns 1.
>
> > alert(j$("is_preferred_email")) gives me
>
> > [object HtmlInputElement],[object HtmlInputElement],[object
> > HtmlInputElement]
>
> > so clearly it is finding all three items.
>
> > I'm stumped.
>
> > I am also using prototype but have called var $j =
> > jQuery.noConflict();
>
> > I'm sure I'm missing something obvious - hope someone can pick it out.
>
> > Thanks,

Reply via email to