[interchange] Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated

Greg Hanson <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 22a3c7fa9812c1af4e9d189a494643ac1ea8daa6
Author: Greg Hanson <[email protected]>
Date:   Wed Oct 12 20:47:18 2011 -0400

    Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated via jquery

 code/Widget/country_select.widget |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/code/Widget/country_select.widget b/code/Widget/country_select.widget
index f2a7518..8d21b3c 100644
--- a/code/Widget/country_select.widget
+++ b/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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.