I am trying to set a limit to add users. for example, I want only 10 users can be added. If 9 users are added then its fine. when the10th user is added, the limit is full, then the "new user" and "upload user CSV file" button must be graded out. so, I have created a webscript which counts the number of users available and fetches the value for the required number of users, i.e, 10 and returns true or false for availabilty of users is less than 10 or not. also, overrided the users.js file as required and I am able to do it.
but the issue is the page must needs to get refreshed to show the buttons are graded out or not.
Is there any way, I can see the changes accordingly on the same page without refreshing the page.