Hi,
I have a list of items and a delete button.
item1
item2
...
ItemX
deleteBtn
After I clicked deleteBtn, it will delete the first item which is item1.
Then if I refresh the page, it will continue to delete item2...
I realized that it was because everytime it loads this page, it will do this:
if(qa_clicked("deleteBtn")){
// do delete opreation
}
And if after clicking, no other button is clicked, qa_clicked("deleteBtn") will still be true, so it will keep deleting things.
Is there any way to solve this problem? Any suggestion or advice is also very much appreciated.
Thank you !