On Mon, Dec 29, 2008 at 11:17 PM, Scott Kulik
<[email protected]> wrote:
>
> Scott Kulik wrote:
>> Mark Reginald James wrote:
>>> Scott Kulik wrote:
>>>>
>>>> i'm not that familiar with javascript so i'm not sure how i would finish
>>>> this.  thanks!
>>>
>>> <%= check_box_tag :task, 1, false,
>>> :onchange => "$(parentNode.parentNode).toggleClassName('complete')" %>
>>>
>>> --
>>> Rails Wheels - Find Plugins, List & Sell Plugins -
>>> http://railswheels.com
>>
>> perfect!  thank you so much mark!
>
> oops spoke a little too soon.  the highlighting works great on firefox 3
> but for some reason it acts a little weird on IE7.
>
> the first check box i click doesn't do anything but then if i click
> another check box the first check box row gets highlighted.
>
> any idea what could be causing the incompatibility with IE?

Try adding `this`:

<%= check_box_tag :task, 1, false,
    :onchange => "$(this.parentNode.parentNode).toggleClassName('complete')" %>

-- 
--------------------------------------------------------------------------------
Training by Collective Idea: Ruby on Rails training in a vacation setting
http://training.collectiveidea.com – San Antonio, TX – Jan 20-23

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to