title: JQuery checkbox when value is assigned
body: <p>I've been trying to get JQuery to check a radio for me when I assign a value 'Z' to it.
  My current code:</p>
  
  <pre><code>       &lt;?php if ($option['type'] == 'radio') { ?&gt;
          &lt;div class="form-group&lt;?php echo ($option['required'] ? ' required' : ''); ?&gt;"&gt;
            &lt;label class="control-label"&gt;&lt;?php echo $option['name']; ?&gt;&lt;/label&gt;
            &lt;div id="input-option&lt;?php echo $option['product_option_id']; ?&gt;"&gt;
              &lt;?php if (isset($option_values)) foreach ($option_values as $option_value) { ?&gt;
  
              &lt;div class="radio"&gt;
                &lt;label&gt;
                  &lt;input type="radio" name="option[&lt;?php echo $option['product_option_id']; ?&gt;]" value="&lt;?php echo $option_value['product_option_value_id']; ?&gt;" /&gt;
                  &lt;?php echo $option_value['name']; ?&gt;
  
                  &lt;?php if ($option_value['price']) { ?&gt;  
                  &lt;?php  if ($option_value['price_prefix'] == 'z') {?&gt; 
                  &lt;script&gt;
                  $(".radio").prop("checked", true)
                  &lt;/script&gt;   
                  &lt;?php echo 'Im Active!!'; ?&gt;&lt;?php } 
                      else { ?&gt; &lt;?php echo ' ';?&gt; (&lt;?php echo $option_value['price_prefix'];?&gt;                
                  &lt;?php echo $option_value['price']; ?&gt;) &lt;?PHP }?&gt;                     
                  &lt;?php } ?&gt;
  
                &lt;/label&gt;
              &lt;/div&gt;
  
              &lt;?php } ?&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php } ?&gt;
  
        &lt;?php } ?&gt;
  </code></pre>
  
  <p>As for now, my option 'Z' only shows 'I'm Active!!' in the list. The radio is still unchecked though. 
  What am I doing wrong? </p>
  
  <p>I'm planning on releasing a free OpenCart module where people can activate an option by standard by assigning the value Z in product properties.</p>
  
  <p>Thanks!</p>