The code is simple...

<style>
.simpleclass{
opacity: 0.5;
background: green;
}
</style>...

<div class="simpleclass"></div>
<div class="simpleclass"></div>

<script>
$(function()
{
   $(".simpleclass").removeClass("simpleclass");
}
);
</script>

P/S: I had made a mistake in my previous post. It is not an id. It is
a class.


On Jul 3, 12:37 am, spicyj <[EMAIL PROTECTED]> wrote:
> Can you give a sample page? I'm confused about what you mean by "only
> 2 elements to remove".
>
> On Jul 2, 9:51 am, Evert <[EMAIL PROTECTED]> wrote:
>
> > //only 2 elements to remove
> > $("#id").removeClass('onesimpleclassonly');
>
> > It took almost 3 ~ 4 seconds to remove the class.
> > What can I do to speed up the process?

Reply via email to