jQuery code not working in IE

后端 未结 2 412
鱼传尺愫
鱼传尺愫 2021-01-14 15:36

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?

2条回答
  •  借酒劲吻你
    2021-01-14 15:41

    I think you're missing your document.ready function. Add this line right above the first line of your script:

    $(document).ready(function() {
    

提交回复
热议问题