Enable input
Description
The following code shows how to enable input.
Example
<html>
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {<!--from w w w . ja v a2 s . c om-->
$("button").click(function() {
$(this).next().removeAttr("disabled").focus().val("editable now");
});
});
</script>
</head>
<body>
<button>Enable</button>
<input type="text" disabled="disabled" value="can't edit this" />
</body>
</html>