Skip to content

Tag: jquery

How can i reduce to a more concise form my JS array

There is the following piece of code that I would like to reduce to a more concise form. I think I did not make the best decision at all. Simultaneously getting rid of the bug, which consists in limiting the operation of the program from arrays prescribed in advance in the code. Please tell me how it can be d…

how to remove the appended elements in jquery

By right-clicking on each picture, the picture will be removed, and a new item will be created by clicking on the + button. But the problem is that the new items that are created (appended) could not be removed. Why is this the case? Answer Because those aren’t targeted by the event handler. It doesn&#8…

Ajax GET Request inside ajax post request?

Is it possible to make an ajax request inside another ajax request? because I need some data from first ajax request to make the next ajax request. I tried to make a script, but i see that instead of GET, my request is POST and i dont know where is the problem.. Answer My code works perfectly, the real proble…