title: how to access object property using variable
body: <p>I have an object </p>
  
  <pre><code>var Messages = {
  'fullName' : 'Tell us your cool name dude..! e.g. Yousuf Iqbal',
  'userName' : 'Choose a catchy username. Remember! It should be available :)',
  'password' : 'Choose a top secret password with special chars, numbers and alphabets',
  'rePassword' : 'Retype the password you just typed. But, don\'t try to copy!',
  'bYear' : 'Tell the year, in which this bomb blasted'
  };
  </code></pre>
  
  <p>and a variable..</p>
  
  <pre><code>var attribute = $('#userinfo form input').attr('name');
  </code></pre>
  
  <p>now i want to select Messages object property using this variable like this..</p>
  
  <pre><code>var message = Messages.attribute;
  </code></pre>
  
  <p>but Its not working..
  and have also tried the following..</p>
  
  <pre><code>var message = Messages+'.'+attribute;
  </code></pre>