Skip to content

Tag: jquery

Ajax post requests 403 error only for some users?

I’ve been testing my site by having friends try it, and some friends get the 403 Forbidden error on any function using ajax. I’m confused why only some of them get the error, especially when everyone used the same browser. Does anyone know why? I’m using Django as a framework and I think I&#…

Fire only one button in buttons list using jQuery

I’m struggling trying to figure out a weird issue. I have a table with several rows, each row has a column with action buttons, the code to draw the buttons group is the following: If user click on edit buton I want to start a Javascript ( jQuery) function, otherwise I start the remove function. Below t…

Need for modification of the javascript countdown code

Please i have a JavaScript countdown timer code that i got from stackoverflow that is a solution to my countdown timer project. this existing code counts down time from 30minutes down to 1 and start over again. and it gives the same count result to every user at the same time. But my challenge with the code i…

JS append elements

I am generating some <li> with JS into my list. This <li> consist from few elements, such as <div>, <section>, etc. And my question is. For now, I generate exact number of elements into the array and then I append these elements from that array. But I would like to know, if I am able t…

jQuery method .find() with special character (&)

I’m getting a “Syntax error, unrecognized expression” when running the following jQuery: What options do I have where the href value would be #one-&-two and I’m trying to toggle the class on an element within a div#mega-menu with id=”#one-&-two” ? I’ve tried e…