Click here to Skip to main content
15,881,248 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
Posted

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.
$('#btn1').click(function(e){
    $('#btn2').attr('style', 'display:inline;');
});
 
Share this answer
 
Try this...

JavaScript
$("#id_of_button1").click(function () {
$("#id-of-button2").show();  
});
 
Share this answer
 
v2

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