Avoiding a javascript race condition

后端 未结 7 2261
醉话见心
醉话见心 2020-12-23 12:26

Here\'s the scenario:

My users are presented a grid, basically, a stripped down version of a spreadsheet. There are textboxes in each row in the grid. When they ch

7条回答
  •  情深已故
    2020-12-23 12:52

    You could set up a recurring function that monitors the state of the entire grid and raises an event that indicates whether the entire grid is valid or not.

    Your 'submit form' button would then enable or disable itself based on that status.

    Oh I see a similar response now - that works too, of course.

提交回复
热议问题