Style elements, give classes, clear floats and add separators (for rows and columns)


/ Published in: jQuery
Save to your folder(s)

Call the function like this:

getChild('.div ul li',4,'newclass',1,1);

Explain: Get all the li's, on every 4 add "newclass", plus, i want a ".clear" and ".seperator" div (to clear the floats and style the separator properly)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.