kala-tamin asp.net mvc jquery how to enable the button after disable

asp.net mvc jquery how to enable the button after disable

 $("#btn").attr("disabled", "disabled"); 

i have used the above line to disable the button how would i enable it .this is not working


asp.net mvc c# javascript web.config


How do I specify error member key in ASP.NET MVC CustomValidation?
The code you've shown definitely works:.
MVC HandleError attribute not working on Controller
<html> <head>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />     <title>Test</title>     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body>     <a href="#" onclick="$('#btn').attr('disabled', 'disabled')">Disable button</a><br/>     <a href="#" onclick="$('#btn').removeAttr('disabled')">Enable button</a><br/>     <input type="button" id="btn" value="Some Button" /> </body> </html> 

What is the elegant solution for unrelated views in MVC web frameworks?

Setting width and height of modal window from JavaScript/JQuery to ASP.NET MVC inline code


How can I implement a label file for regions that integrates well with MVC application structure?
The jQuery attr-selector actually has an overload for this, where you can pass true/false for disabled specifically:.
How asp.net MVC's cache and Firefox's cache work?
$('#btn').attr('disabled', true); $('#btn').attr('disabled', false); 

Is the MVC Controller Layer the ideal place for error handling?

83 out of 100 based on 43 user ratings 593 reviews