title: Using Input Fields in VisualForce to selectively Hide pageBlocks
body: <p>I would like to display the pageBlockSection "ccBlock" only if the inputField "Gift_<em>c.PaymentMethod</em>_c" (which is a Dropdown) has a certain value - namely 'Credit Card'.  I've tried many approaches but no luck so far. </p>
  
  <pre><code>    &lt;apex:pageBlockSection title="Basic Information" columns="1" &gt;
          &lt;apex:inputField value="{!Gift__c.Contact__c}"/&gt;
          &lt;apex:inputField value="{!Gift__c.PaymentMethod__c}" id="payMethod" &gt;
              &lt;apex:actionSupport event="onchange"  reRender="ccBlock, bankBlock" action="{!HideBlock}" /&gt;
          &lt;/apex:inputField&gt;
      &lt;/apex:pageBlockSection&gt;
      &lt;apex:pageBlockSection title="Credit Card" rendered="{!visi}" columns="1" id="ccBlock"&gt;
          &lt;apex:inputField value="{!Gift__c.CCType__c}"/&gt;
          &lt;apex:inputField value="{!Gift__c.CCName__c}"/&gt;
          &lt;apex:inputField value="{!Gift__c.CCNumber__c}"/&gt;
          &lt;apex:inputField value="{!Gift__c.CCExpiryMonth__c}"/&gt;
          &lt;apex:inputField value="{!Gift__c.CCExpiryYear__c}"/&gt;
      &lt;/apex:pageBlockSection&gt;  
  </code></pre>