There r 2 buttons RED and BLUE.
If click on RED some ‘sample code’ has to come and moving to BLUE ‘sample code has to hide and ‘New paragraph’ has to come and vice versa.
There r 2 buttons RED and BLUE. If click on RED some ‘sample code’
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’d add onClick listeners. You could do these easy enough with JQuery.
Something like…
For pure Javascript you could edit the HTML of the button like so..
Clicking the above button would invoke
redButton().