Edit in JSFiddle

<body>
    <input type="text" id="textBox" /><br />
<button id="enable">Enable</button>
<button id="disable">Disable</button>
</body>
$(document).ready(function()
{
$('#enable').click(function()
{
$('#textBox').removeAttr("disabled")
});
$('#disable').click(function()
{
$('#textBox').attr("disabled","disabled");
});
});