How to disable an option when selected more than 5 times in dynamically generated rows?

Following is my code :

: