Replace Button and Text

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Replace Button and Text

Post by Stela »

Hello…

I have a text and a button and I needed to when the button is clicked, a new text substitute the first one and the label of the button is also changed and when the button is clicked again, everything returns to the firsts state.

I google this subject, but only found portions of it, I learned how to change the text and the text of the button, but change them to the first state I don't know.
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: Replace Button and Text

Post by Gopesh »

Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Re: Replace Button and Text

Post by Stela »

That's it!

Thank you!
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: Replace Button and Text

Post by Gopesh »

Ok..All the best
Post Reply