views:

47

answers:

0

i am trying to refresh a autocomplete combobox coming from jquery ui as i am getting a new list via ajax.

the combobox looks fine on startup but when i refresh the combobox via jquery / ajax, it turns it back into a normal combobox

here is the jquery code:

  $.get('/Tracker/RefreshList', function(data1) {
            $('div#exercises').html(data1);

i was able to fix this by readding the .combobox() method so now it looks like this

  $.get('/Tracker/RefreshList', function(data1) {
            $('div#exercises').html(data1);
            $(".autoComplete").combobox();

the one issue that i have is the button is no longer aligned next to the textbox so after calling the code above it looks like this (where the button is all the way to the right):

alt text

Everything works fine and when i click on the button i get the dropdown list but obviously it looks weird. Does anyone know why this would change the formatting or alignment compared to how it looks like on the initial page load ?