jquery - How to make checkbox selection triggering in sequence while calling javascript function -


i have 3 checkboxes , each 1 holds flag value , calls same function. how can make sure selection of these checkboxes makes calls per order of checking check boxes.

issue : when click on check boxes quickly, though selected checkbox-1 , checkbox-2 in sequentially, internally making first call checkbox-2 , calling chekbox-1 event. please note intermittent issue happens when user checking boxes quickly.

query : there way make sure order of checkbox firing?

you haven't added code snippet answer theoretically. problem common non-blocking i/o , ui, if user clicks fast, example form submit button, can send form many times.

the easiest method avoid such issue block other check-boxes, when of request pending set boolean indicator , if indicator true disable other check-boxes, when response comes unblock interface , set indicator false again.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -