<script type="text/javascript">
function DoThings()
{
var txt = txtbox.value;
txt = /* passed info from code behind */
}
$(function() { var Tags=[ txt ]; $( "txtbox2").autocomplete({source: Tags});});
</script>
but i want to move it to the page. im unsure how i send the variable "txt" to my jquery function