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);
});