0

I have an AjaxDropDown and I am calling the onchange event whenever the dropdown value changes. In the ajaxstop function I am binding data to the drop-down and selecting some value. So the focus is currently on dropdown as I am using select. Afterwards, whenever I click anywhere on the page the onchange event is called. Is there any way to set the focus of that dropdown to false after using select?

Here is my code:

$(document).ajaxstop(function(){
    var dropDown=$('#ddlDropDown').data('tDropDownList');
    dropDown.select(0);
});
Rudresha Parameshappa
  • 3,826
  • 3
  • 25
  • 39

1 Answers1

0

Why not set the focus to something else, preferably something useful:

$('#other').click(function() {
  $('#target').focus();
});
tuvokki
  • 720
  • 1
  • 10
  • 18