javascript - no click event in (some) Internet Explorers -


i have problems jquery-click-events on button-elements not firing in internet explorers.

this not related submitting forms, found many questions regarding problems this, no duplicate question.

i made simple example illustrate problem:

it test-button, colored red prove jquery works , click handler colouring blue , showing alert. here jquery code :

$('#foo').on('click', function(){   $('#foo').css('color', 'blue');   alert('test'); }).css('color', 'red'); 

here html code :

<html>   <body>     <button id="foo">test</button>     <script src="http://code.jquery.com/jquery-1.9.1.js"></script>   </body> </html> 

the problem is, click event not fire on pcs in internet explorer. on other pcs works in ie , on pcs in other browsers.

here screenshot of not working ie: not working example

i searched through options , compatibility modes , did not find solution/reason this.

ideas anyone?


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -