Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var coockSet = new Array();
- function set_file(curent){
- var value = $(curent).attr("rel");
- var status = $(curent).attr("checked");
- if(status == true) coockSet.push(value);
- if(status == false){
- coockSet = jQuery.grep(coockSet, function(val) { return val != value; });
- }
- console.log(coockSet);
- set_cook();
- }
- function set_cook(){
- var data = $(coockSet).serializeArray();
- console.log(data);
- $.cookie("files", data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement