1

我在 IE 和 Nightly 上运行下一个脚本没有任何问题。但是chrome由于某种原因不会运行它……有什么想法吗?

<script>
$(function() {
         $('#date').datepicker({
            dateFormat: 'yy-mm-dd',
            autoSize: true,
            onSelect: function (dateText, inst) {
            $(this).parent('#frmDate').submit();
            }
        });
    });
</script>

<form id="frmDate" action="php/price_qury.php" method="post" target="_blank" onSubmit='window.open("width=450,height=300,status=yes,resizable=yes,scrollbars=yes)'>
      <input id="date" name="date" type="text"   size="10">
4

2 回答 2

0
于 2013-10-11T22:22:20.007 回答
0

发现问题:

<form 
 id="frmDate" 
 action="php/price_qury.php" 
 method="post" 
 target="_blank" 
 onSubmit='window.open("width=450,height=300,status=yes,resizable=yes,scrollbars=yes)'>

您的onSubmit. 解决这个问题,你就是黄金 :)

应该:

<form 
 id="frmDate" 
 action="php/price_qury.php" 
 method="post" 
 target="_blank" 
 onSubmit='window.open("width=450,height=300,status=yes,resizable=yes,scrollbars=yes")'>

小提琴:http: //jsfiddle.net/KyleMuir/JHUD7/5/

希望这可以帮助!

于 2013-10-11T22:33:24.700 回答