When I clicked save switch, I am utilizing ajax with laravel and also. I am obtaining this mistake in Console:

TypeError: $. Message is not a feature

This is item of code:

$("type"). send(feature (occasion) event.preventDefault(); name = $("#name"). val(); address = $("#address"). val(); nation = $("#country"). val(); $. MESSAGE(" ", , feature (information) td>"+ ""+data.data.country+"<); );

*

I"m thinking that you are making use of JQuery? If so, then the proper approach is:


*

$. article (); JavaScript is situation delicate. I assume You are utilizing the slim variation of jQuery, which doesn"t have AJAX $. message feature, can you attempt that:

https://code.jquery.com/jquery-3.1.0.min.js


*

Many thanks for adding a response to Pile Overflow!Please make certain to address the inquiry. Offer information and also share your research!But prevent ... Requesting for aid, information, or replying to various other answers.Making declarations based upon point of view; back them up with referrals or individual experience.To find out more, see our ideas on creating excellent solutions. Message Your Response Discard By clicking"Article Your Response ", you consent to our regards to solution, personal privacy plan
and also cookie plan Why does

my JavaScript code get a"No ' Access-Control-Allow-Origin ' header exists on the asked for source"mistake, while Mail carrier does not? website style/ logo design © 2021 Heap Exchange Inc; customer payments accredited under cc by-sa. rev2021.9.24.40305 Heap Overflow functions ideal with JavaScript made it possible for Your personal privacy By clicking"Approve


all cookies", you concur Heap Exchange can save cookies
*

on your gadget

as well as divulge info based on our Cookie Plan.