This should be simple.
I have ajax returning string, with multiple divs. I need to count each div in the string (so if necessary maybe i have to create an array) and then slideDown each div every x seconds with a little .delay('200');.
Please keep in mind the ajax return could be different on each return so it has to work for x amount of divs.
For example
// For testing lets pretend ajax.return is ajax.return = '<div>BLEH CONTENT</div> <div>BLEH CONTENT</div>'; var com = $(ajax.return).hide(); com.prependTo('#container').slideDown('fast');
Right now the code I have obviously does one quick slideDown of all the divs in ajax.return it treats it as one string and prepends the whole string.
Can someone help me create a loop for each div in the string and apply a slideDown for each one with a 1 or 2 sec delay in between each slideDown.