Jquery: Focusout Triggering Before Onclick For Ajax Suggestion
I have a webpage I'm building where I need to be able to select 1-9 members via a dropdown, which then provides that many input fields to enter their name. Each name field has a '
Solution 1:
If you use mousedown instead of click on the suggestions binding, it will occur before the blur of the input. JSFiddle.
<input type="text" />
<ahref="#">Click</a>
$('input').on('blur', function(e) {
console.log(e);
});
$('a').on('mousedown', function(e) {
console.log(e);
});
Or more specifically to your case:
<divonmousedown='setMember(123, "Raphael Jordan", 2)'>Raphael Jordan</div>
Post a Comment for "Jquery: Focusout Triggering Before Onclick For Ajax Suggestion"