Could anyone tell me if it’s possible to automate the following process. Basically, in my simple code in the JSFiddle here, I am using the jQuery click()
event. So when a user clicks on the text Click Me First Time!
and new text is shown below Click Me Second Time!
. When a user clicks on Click Me Second Time!
, a new text is shown below Click Me Third Time!
.
I want to continue this process as long as user keep on clicking the latest text shown on the screen so far. By continue this process, I mean, when a user clicks on the latest text( here Click Me Third Time!
, I want to display another text below and when user clicks that text again, I want to display another new text and so on and so forth)
Is there a way where I could automate this process instead of writing the click()
event again and again because I am not sure how many times a user would keep on clicking the latest text.