Jquery 1.4 Live behavior on .each?

Does jQuery use .each loops for live elements?

I create radio buttons on the fly and you need to loop through all of them, but the .each loop does not seem to work on live elements.

If jquery does not support such a write loop, is there any other way to do this?

+5
source share
2 answers

live()works only for event binding. The only thing that comes to my mind is to put all the code in a function, execute it again after you have inserted these elements.

+6
source

at the end of the loop, initialize the switches.

it worked for me.

0
source

All Articles