Bonjour
当我单击按钮以打开弹出窗口时:
<a href="#" onclick="log_action_menu('stats_products_vente_dialog.php', '', 'barre_action_impression2'); expand_action_slider('barre_action_impression2'); jQuery('#select_document_gedao').val(''); update_docs_list_gedao(); return false;">
我的窗口打开得很好,当我将鼠标移至输入或select-> option上方时,鼠标光标会发生变化,但无法单击输入以输入文本或单击select选项。 当我使用方向箭头在选择区域中移动时,效果很好。
var select = jQuery("select:first", "#documents_list_gedao")[0];
var index = select.selectedIndex;
jQuery("input[name='Impression_type']").val(select.options[index]);
jQuery("#select_document_gedao").val(select.options[index].innerHTML);
show_information(TEXT_DOC_NEW_POPUP, { modal: false });
agent.call('','create_contrat','create_contrat_return','<?php echo ($types_documents_impression=="vente" ? (int)$_GET['vID'] : (int)$HTTP_GET_VARS['pID']); ?>',select.options[index].value,'<?php echo ($types_documents_impression=="vente" ? 'compromis' : 'products'); ?>');
当我单击选择选项时,我在控制台中收到以下错误消息:
VM16017:166 Uncaught TypeError: Cannot read property 'innerHTML' of undefined
at print_selected_document_gedao (eval at <anonymous> (jquery-1.7.2.min.js:2), <anonymous>:166:62)
at HTMLDivElement.eval (eval at <anonymous> (jquery-1.7.2.min.js:2), <anonymous>:172:3)
at HTMLDivElement.dispatch (jquery-1.7.2.min.js:3)
at HTMLDivElement.i (jquery-1.7.2.min.js:3)
我想知道是否是显示问题?