<code class="lang-js">jQuery(function(){ jQuery("#upload").change(function(){ jQuery('#uploadForm').submit(); })})</code>
在ff 和chrome下都能触发事件,但是IE仍然无动于衷
回复内容:
<code class="lang-js">jQuery(function(){ jQuery("#upload").change(function(){ jQuery('#uploadForm').submit(); })})</code>
在ff 和chrome下都能触发事件,但是IE仍然无动于衷
用.on
https://api.jquery.com/on/
<code class="lang-javascript">$("#test").on('change', function() { al<i>·本2文来源gaodai$ma#com搞$代*码网2</i><strong>搞gaodaima代码</strong>ert('ok');});</code>