after shuffle a list get array with jquery

Posted by robertdd on Stack Overflow See other posts from Stack Overflow or by robertdd
Published on 2010-04-27T03:47:07Z Indexed on 2010/04/27 3:53 UTC
Read the original article Hit count: 383

Filed under:
|
|

i want after i shuffle a list of images to get all the alt="" value in one array! but i get always the save value!why?

$('ul').shuffle(); //this will shuffle the list

var a = {};
$("ul img").each(function() {
  a[this.alt] = $(this).attr("alt");
});


$.operation(a, shuffle);

© Stack Overflow or respective owner

Related posts about shuffle

Related posts about jQuery