Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. heading  = $('#heading').html(heading);
  2.  
  3. var countryName;
  4. for (i=0; i < profiles.length ; i++){
  5.  
  6.     console.log("I am in the for loop");
  7.     if ((profiles[i]).id === profile.id){
  8.         countryName = console.log((profiles[i]).label);
  9.         break;     
  10.     }
  11. }
  12. console.log(countryName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement