So in this code i generate divs on button click and i need to wrote a jquery function to hide the div but if i make 2 or more divs on the button click every one of them dissapears and i only need to hide just the one that i press the button on
$("#payBtn").click(function(){
$("#div5").hide(1000)
Here is the code snippet so you can try it and see what im trying to achieve : https://codesandbox.io/s/twilight-star-26ybq7?file=/index.html the ID input has to have at least 3 capital letters and 10 characters like:123SSSgggg.