Permalink
Browse files

Added ID attribute to "pseudo" state dropdown so both actual state va…

…lue and display can be updated via jquery
  • Loading branch information...
1 parent 36f02ed commit 22a3c7fa9812c1af4e9d189a494643ac1ea8daa6 @perusiongreg perusiongreg committed Oct 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/Widget/country_select.widget
@@ -223,14 +223,14 @@ EOF
var svary = $v_state_vary\[country];
if(! svary) {
var val = '';
- sbox.innerHTML = '<input type="text" size="$size" name="$svar_in" value="' + sval + '" onChange="$v_formv.$svar.value = this.value"$extra>';
+ sbox.innerHTML = '<input type="text" size="$size" name="$svar_in" id="$svar_in" value="' + sval + '" onChange="$v_formv.$svar.value = this.value"$extra>';
$v_formv.$svar.value=sval;
return;
}
var stary = $v_state_tary\[country];
- var str = '<select name="$svar_in" onChange="$v_formv.$svar.value = this.value$state_js"$extra>';
+ var str = '<select name="$svar_in" id="$svar_in" onChange="$v_formv.$svar.value = this.value$state_js"$extra>';
for(var i = 0; i < svary.length; i++) {
str += '<option value="' + svary[i] + '"';
if(svary[i] == sval)

0 comments on commit 22a3c7f

Please sign in to comment.