Javascript and AJAX, only works when using alert()

前端 未结 9 1173
借酒劲吻你
借酒劲吻你 2020-12-01 15:01

I am having trouble with my javascript. It seems to be acting oddly. This is what\'s going on. I have a form, after the user submits it, it calls a function(onsubmit event)

9条回答
  •  执念已碎
    2020-12-01 16:04

    I had the same problem and simply added:

        

    ?>

    after the javascript (which btw, entailed deferring jQuery 1.9.1 to the head

提交回复
热议问题