I'm using jquery simplemodal to open a popup form which include ajax autocomplete inputs, the first time access to the modal this autocompletes works fine, but when i close it and reopen the modal the autocomplete are not longer binded to the functions of ajax, any clue? i set the close as the default nothing else and not using live....
Asked
Active
Viewed 289 times
1 Answers
0
I'm having the same issue - it seems broader than autocomplete though - I'm loosing all jquery bindings on the second open, so I'm pretty sure it's a simplemodal issue. To get around the autocomplete issue I loaded it on the simplemodal open (and unloaded on close). Still looking for a better solution!
$dialog.modal({
onShow: function(event, ui) {
$('#an-autocomplete-input').autocomplete();
},
onClose: function(event, ui) {
$('#an-autocomplete-input').autocomplete( "close" );
$.modal.close();
}
});

Doug English
- 286
- 1
- 10