title: Getting selected dropdown value for custom attribute in Magento automatically
body: <p>I'm trying to get a custom dropdown attribute's selected value using</p>
  
  <pre><code>echo $_product-&gt;getProductSize();
  </code></pre>
  
  <p>and                             </p>
  
  <pre><code>echo $_product-&gt;getAttributeText('product_size');
  </code></pre>
  
  <p>Then, I clear my cache and reindex and reload my page. I tried selecting a value from the dropdown but either one returns anything. So basically, my question is, how can I retrieve the selected value from a custom dropdown attribute? I'm planning on using this to display different contents on my product page depending on the selected value. Thanks in advance for any help and advice.</p>
  
  <p>Addition: I'm trying to call it on the product page where the same dropdown is called.</p>
  
  <p>After trying to play with the attribute a little bit through the admin panel, I noticed how the value I selected echoed on the page. However, I was hoping of being able to retrieve it dynamically on the frontend. Is this possible? For example, in the frontend, the customer selects option B, then I would display information related to option B. Then if he changed to option D then the information would change to option D's information.</p>