最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - $(...).ajaxForm is not a function - Stack Overflow

programmeradmin1浏览0评论

I load jquery and ajaxform plugin and after that init ajaxform on element.

<script src=".11.2/jquery.min.js"></script>
<script type="text/javascript" src=".form.js" /></script>
<script src="script.js"></script>

script.js

$(document).ready(function() {
    $('.form').ajaxForm();
});

Error: $(...).ajaxForm is not a function. It appears on this site.

I load jquery and ajaxform plugin and after that init ajaxform on element.

<script src="https://ajax.googleapis./ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="http://malsup.github./jquery.form.js" /></script>
<script src="script.js"></script>

script.js

$(document).ready(function() {
    $('.form').ajaxForm();
});

Error: $(...).ajaxForm is not a function. It appears on this site.

Share Improve this question asked Feb 8, 2016 at 1:22 ArtemArtem 5552 gold badges8 silver badges25 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

Github isn't a CDN and will block you trying to use it as such.

jquery.form.js is available on numerous proper CDN's or you can download it and serve from your own site

发布评论

评论列表(0)

  1. 暂无评论