From 5a26ee518680716465737353284c52a461597b3b Mon Sep 17 00:00:00 2001 From: haemmer Date: Thu, 26 Jan 2012 14:13:51 +0000 Subject: [PATCH] Click on list entry also focuses submit button --- js/improvedDropDown.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/improvedDropDown.js b/js/improvedDropDown.js index a39c120..de59725 100755 --- a/js/improvedDropDown.js +++ b/js/improvedDropDown.js @@ -375,7 +375,10 @@ function populateListItem(newListControl, optionItem) { $(this).addClass('idd_listItem_Hover'); }); newListItem.mouseout(function () { $(this).removeClass('idd_listItem_Hover'); }); - newListItem.click(function () { selectItem($(this),true,true,false); }); + newListItem.click(function () { + selectItem($(this),true,true,false); + $('[type="submit"]').focus(); + }); } else { newListItem.addClass('idd_listItem_Disabled'); -- GitLab