Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">//<![CDATA[
- $(document).ready(function(){
- $('.ExpressCheckoutContent').ajaxSuccess(function(){
- var countries = new Array("France","United States");
- var cs = new Array();
- var vals = new Array();
- var i = 0;
- var x = "";
- $('#FormField_11 option').each(function(){
- cs[i] = $(this).text();
- vals[i] = $(this).attr('value');
- i++;
- $(this).remove();
- });
- for (var k = 0; k < countries.length; k++)
- {
- for (var j = 0; j < cs.length; j++)
- {
- if (countries[k] == cs[j])
- {
- if (cs[j] == "United States")
- {
- x = '<option selected="selected" value="' + vals[j] + '">' + cs[j] + '</option>';
- } else
- {
- x = '<option value="' + vals[j] + '">' + cs[j] + '</option>';
- }
- $('#FormField_11').append(x);
- }
- }
- }
- });
- });
- //]]></script>
Add Comment
Please, Sign In to add comment