Click here to Skip to main content
15,878,048 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two buttons one button one click i have to show button2 which is hidden on page load
these are html controls,i am working with mvc

Try this...

$("#id_of_button1").click(function () {
Share this answer
Try this: here btn1 is the id of the button which you click and btn2 is the id of the button which you wish to unhide.

Note: btn2 button must have rendered on page for this to work.
    $('#btn2').attr('style', 'display:inline;');
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900