Support » Fixing WordPress » ajax error

  • please help me 🙁
    i found this error
    TypeError: $ is not a function
    $(‘#ajax-contact-form’).submit(function(e){

Viewing 1 replies (of 1 total)
  • Howdy @dodiya nilesh,

    Try replacing $ with jQuery and see if that works. For compatibility reasons, the $ shortcut doesn’t work in WordPress by default. This prevents conflicts with other libraries that use $ such as MooTools or Prototype.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.