Artem
Artem

Reputation: 553

$(...).ajaxForm is not a function

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

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="http://malsup.github.com/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.

Upvotes: 2

Views: 9762

Answers (1)

charlietfl
charlietfl

Reputation: 171669

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

Upvotes: 3

Related Questions