jQuery append not working in IE8

前端 未结 5 1375
说谎
说谎 2021-01-12 06:16
 $(\'#buttonadd\').click(function(){
            if ($counter < 10)
            {
                $counter++;
                $countonlyadd++;
                $(\         


        
5条回答
  •  孤独总比滥情好
    2021-01-12 07:05

    Questions are:

    • Do you have $counter defined?
    • Do you have $countonlyadd defined?
    • Do you have <table> wrapper in #buttondiv ?

    Think about these questions and if result is "no", that's the problem

    If you have <table> wrapper, change

    $('#buttondiv').
    

    to

    $('#buttondiv table').
    

提交回复
热议问题