Re: [jQuery] Jquery unique ID

2009-12-05 Thread Charlie Griefer
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js "> $(document).ready(function() { $('div.testClass').each(function(i) { $(this).attr('id', 'test' + i) }); }); A B C $('div.testClass').each(function(i) <-- will loop over each instance of a div

[jQuery] Jquery unique ID

2009-12-05 Thread kbuntu
I'm a designer and totally lost when it comes to php or java script. Perhaps somebody can help me. I have several images when hover over it will display a DIV called testing. The content is dynamically generated by wordpress. My problem is when I hover over an image it displays all the div's with