I am a novice in jQuery, and am trying to create this page. In all browsers I tested, when I click the red button a coupon code appears, except for IE. Why does this happen?
I think you're missing your document.ready function. Add this line right above the first line of your script:
$(document).ready(function() {
Your script is not executing in IE. To fix it, just change the script type to text/javascript
.
IE does not recognize the application/javascript
type as being a script at all.