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

 $("#btn").removeAttr("disabled"); 

asp.net mvc c# javascript web.config

1:

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 although ton</a><br/>     <a href="#" onclick="$('#btn').removeAttr('disabled')">Enable although ton</a><br/>     <input type="although ton" 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

2:

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 must 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?

63 out of 100 based on 38 user ratings 873 reviews