[jQuery] Replace an element with only opening or close element tag

2009-07-17 Thread Evert
Hi there, I am a newbie at using jquery and now I stumbled upon a problem. With Jquery I want to replace each with a opening tag or a closing tag. This way I would like to place a large page of content in different divs. Now I have this code : var counter = 0; for(var i = 0; i < $('hr').size

[jQuery] Re: Create a class on run-time?

2008-07-20 Thread Evert
query.com). > if(2): jQuery.Rule could be the > solutionhttp://flesler.blogspot.com/2007/11/jqueryrule.html > > -- > Ariel Fleslerhttp://flesler.blogspot.com/ > > On 18 jul, 19:13, Evert <[EMAIL PROTECTED]> wrote: > > > Is it possible to create css class on run-time with jquery/javascript? > > if yes, how?

[jQuery] Create a class on run-time?

2008-07-18 Thread Evert
Is it possible to create css class on run-time with jquery/javascript? if yes, how?

[jQuery] Re: .removeClass() performance is very low on IE7

2008-07-18 Thread Evert
Thanks! I had fixed my code and your answer inspired me to map the elements with the class into an array. My script become more responsive now. On Jul 8, 8:31 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Hi Evert, > > '.someclass' is a slow selector as it has

[jQuery] Re: .removeClass() performance is very low on IE7

2008-07-08 Thread Evert
CTED]> 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('onesim

[jQuery] .removeClass() performance is very low on IE7

2008-07-02 Thread Evert
//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?

[jQuery] How to generate a new css class on runtime?

2008-06-30 Thread Evert
I'm trying to generate a new css class with Jquery which is not defined in .css or html