jQuery: re-enable selected and disabled option
<p>I'm trying to re-enable the selected and disabled option from the drop-down list once they are "removed" from the added list.
Can anyone please help me. Many thanks in advance.
Following is what I've got so far, and here <a href="http://jsfiddle.net/N2jyy/2/" rel="nofollow">http://jsfiddle.net/N2jyy/2/</a> demo page.</p>

<pre><code>$(document).ready(function() {
    $('#Add-btn').live('click',function() {
        $(document.body).append($("&lt;div&gt;"));
            var a = $('#a').val();
            $("#tabName tr:first").before("&lt;tr&gt;&lt;td class='greyed'&gt;&lt;input type='hidden' name='added_a' value='" + a + "'&gt;" + a + "&lt;/td&gt;&lt;td style='background:transparent;'&gt;&lt;input type='button' class='delete' value='Remove'&gt;&lt;/td&gt;&lt;/tr&gt;");
            $("#a option:selected").attr("disabled", true);
    });
    $('#tabName td .delete').live('click',function() {
        // here I want to re-enable the select option ...removeAttr('disabled');
        $(this).parent().parent().remove(); 
        return false;
    });
});​
</code></pre>
