Question : Radio button if condition

Hi,

We have this code in place for validation with jQuery Validation Plugin works good but we need it to be more precise.

We need that only if pType radio button selected  is the one with value of 1 to make the pShippingMode radio button required. The other pType radio option is a value of 2 so it needs to be excluded from the condition.

thank you
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
<script>
  $(document).ready(function(){
    $("#add_product").validate({
  rules: {
    pShippingMode: {
      required: "#pType:checked"
    }
  }, debug:true
});
$("#pType").click(function() {
  $("#pShippingMode").valid();
});

  });


  </script>

Answer : Radio button if condition

Hi,

Yes, because it is trying to load one of the broken .mov files (AntrimIntro.mov).

If you can get all the .mov files to play it will work ok.

Chris.
Random Solutions  
 
programming4us programming4us