Skip to content

Tag: jquery

how to pass $(this).data() in ajax request

i need to pass $(this).data into success func in ajax. here is my code But $(this).addClass(‘wishlist-comp-saved’); is not working inside success: function(data) {} Answer $(this) will change context when called. When inside of the success: function (data), $(this) is not the same as it was inside…

why i cant remove event using fullcalendar 5?

I created a calendar fullcalendar5 version 5, i add an event ,i show event in my calendar ,now i want to delete event but its give me error : Uncaught TypeError: $(…).fullCalendar is not a function. also when i want to see id value its give me undefined . i change code from $(‘#calendar’).fu…

How could I optimize this js animation?

I’ve been trying to build this animation with three palm leaves gently swaying as a background for a website, but it needs to run as smoothly as possible without messing with the page loading time too much. I’m pretty new to js so the code I’ve got at the moment is probably not optimal, Ther…

jQuery get selected option from combobox [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 5 months ago. Improve this question I ha…

jQuery collapsible through toggleClass on element

I have an off canvas navigation menu (classname that is enabled via hover-over using jQuery on my WordPress site. It is, as it should be, not visible on page load. For the mobile version, I want the same nav menu to be activated by clicking on a menu icon (that I’ve given two classes, in this order: mob…

How to Swap Two Divs With Animation

I have a project where I want a div to appear as a large box and three more to appear underneath as smaller boxes and when you click a smaller box, it switches sizes and places with the large box using css transitions to make the movement and size change smooth. Right now I’m attempting to use jQuery an…