/ Published in: JavaScript
                    
                                        
/*Coded by Alessio Delmonti - www.tecnocrazia.com*/
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function getKeyStr(j, ar){ //recupera la chiave partendo da il valore di un array
var i;
for(i in ar){
if (j == ar[i]){
return i;
}
else{continue;}
}
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                