Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var req = new Array();
- $.get('./ajax/get_cat_info.php?cid=' +cid, function(data, textStatus) {
- var count = 0;
- $.each(data, function(key, val) {
- $('#' + key).show();
- if(val == 1) {
- req[count] = key;
- count = count + 1;
- //var arLen=req.length;
- //alert('l: ' + arLen); // this works though
- }
- });
- }, 'json');
- var arLen=req.length;
- alert('l: ' + arLen);
Add Comment
Please, Sign In to add comment