I am using magicsuggest and have two select boxes as i have shown in image below, my problem is i am able to set focus on second maggicsuggest box with help of
$(myCustomId).blur(); $('#ms2').attr("tabindex",-1).focus();
but there is still blue border outside first selection box and i am not able to select value from second combo-box
my JavaScript is
var myCustomId = $("#ms1").magicSuggest({
maxSelection: 1,
allowFreeEntries: true,
autoSelect: true,
expandOnFocus: true,
useTabKey: true
});
myCustomId.setData(['Paris', 'New York', 'Gotham']);
$(myCustomId).on('blur', function(c){
});
$(myCustomId).on('selectionchange', function(e,m){
$(myCustomId).blur();
$('#ms2').attr("tabindex",-1).focus();
});
var myCustomId2 = $("#ms2").magicSuggest({
maxSelection: 1,
allowFreeEntries: true,
autoSelect: true,
expandOnFocus: true,
useTabKey: true
});
myCustomId2.setData(['Paris', 'New York', 'Gotham']);