1

I need to convert following jquery into prototype. How can I do it ?

$('.exercise-main .menu li').removeClass('current');

<div class="exercise-main">

<div class="menu">

    <ul id="myList">
            <li class="firstTab current" ></li>
            <li class="secondTab"></li>
            <li class="thirdTab"></li>

    </ul>

</div>
</div>
4

1 回答 1

4

用这个:

$$(.exercise-main .menu li).invoke('removeClassName','current');
于 2012-05-29T14:33:19.833 回答