title: Prestashop on delivery select hide/show payment method
body: <p>I'm trying to figure out how to show/hide payment method on delivery method select.</p>
  
  <p>I tryed couple solutions but it didn't worked for me.</p>
  
  <p>One of them is this one:</p>
  
  <pre><code>&lt;script&gt;
     $(document).ready(function(){
         toggleFields();
  
         $('.delivery_option_radio').on('change', function() {
             toggleFields();
         });
     });
  
     function toggleFields() {
         if ($('#delivery_option_3_0').is(':checked')) {
            alert("Selected")
         } else {
            alert("Not Selected");
         }
     }
  &lt;/script&gt;
  </code></pre>
  
  <p>Problem is that it works just 2 times. Example:</p>
  
  <p>Page loads, alert box appears and shows: Selected, then I select other radio button it shows "Not Selected" and then it stops working.</p>
  
  <p>Any solutions ? I found this tutorial here:</p>
  
  <p><a href="http://jsfiddle.net/ngaK8" rel="nofollow">http://jsfiddle.net/ngaK8</a></p>
  
  <p>I read that it could be something with ajax.. that I have to reload my jQuery because delivery radio buttons uses ajax to calculate total price.</p>