I have jquery UI accordion divs under foreach loop and inside each div i have two buttons. One is add button. When add button is clicked, it is swapped by a dropdown button which using select2 jquery UI. When a value is selected from dropdown, it is saved to database using ajax call. I have jquery UI accordion divs under foreach l