Permalink
Browse files

State select class. Closes #459.

  • Loading branch information...
1 parent 4c5ec53 commit 6759b554ae50e2474ff88a6c336555ccf52f47df @mikejolley mikejolley committed Jan 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 woocommerce-template.php
View
@@ -679,7 +679,7 @@ function woocommerce_form_field( $key, $args, $value = '' ) {
if (isset( $states[$current_cc][$current_r] )) :
// Dropdown
- $field .= '<select name="'.$key.'" id="'.$key.'"><option value="">'.__('Select a state&hellip;', 'woocommerce').'</option>';
+ $field .= '<select name="'.$key.'" id="'.$key.'" class="state_select"><option value="">'.__('Select a state&hellip;', 'woocommerce').'</option>';
foreach($states[$current_cc] as $ckey=>$cvalue) :
$field .= '<option value="'.$ckey.'" '.selected($current_r, $ckey, false).'>'.__($cvalue, 'woocommerce').'</option>';
endforeach;

0 comments on commit 6759b55

Please sign in to comment.