I have a form, with a button called add rows. I would like to disable this button after user clicks on it thrice.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could set a click counter on the button, but seeing as it is called “add rows”, I suppose you might be able to just count the number of rows, and determine if it should be disabled that way.
Replace
truewith your favourite means of calculating the number of rows.