Since you are initializing the autocomplete, it's better to do it there. Something like this (untested):
$('#question{QID}').autocomplete({
// Some autocomplete options go here...
// Fire the checkconditions function
select: function(event, ui) {
var thisInput = $('#question{QID} input.text');
checkconditions($(thisInput).attr('value'), $(thisInput).attr('name'), 'text');
}
});