How to rewrite this Javascript code using Jquery?
<pre><code>function SelectDistrict(argument)
{ 
var sel=document.getElementById("city");
sel.style.display = '';
sel.options.length = 0;

sel.options.add(new Option('Please select a location',''));

var i=1;
var tempInt=parseInt(argument);
if (tempInt%10000==0)
{
var place1=document.getElementById('place1');
 place1.innerHTML =county[tempInt];
}

sel.options.add(new Option('all',tempInt));

$('#inputcity').hide();
while (i&lt;=52)
{
    tempInt+=100;

    if (county[tempInt]==undefined)
    { 
     break;
    }
    else { 

    op_cir = new Option(county[tempInt], tempInt);
            sel.options.add(op_cir);

    }
i++;    
    }

}
</code></pre>
