Mindblowing jQuery Weirdness
<p>...at least to me. This code <em>used</em> to work fine. I'm pretty sure nothing has changed, but now all of the sudden it behaves oddly. Basically I'm trying to create inline editing functionality. When the user clicks on the link, it dynamically generates a textbox and a confirm and cancel link. I'm having problems with the cancel link not removing everything in the cell.</p>

<p>HTML:</p>

<pre><code>...
&lt;td class="bid"&gt;
   &lt;a href="javascript:" class="102093" title="Click to modify bid"&gt;$0.45&lt;/a&gt;
&lt;/td&gt;
...
</code></pre>

<p>Binding jQuery (in <code>$(function())</code>):</p>

<pre><code>$('.bid a').live('click', renderBidChange);
....
$('.report_table .cancel').live('click', cancelUpdate); 
</code></pre>

<p><code>renderBidChange</code> (this function creates the dynamic elements):</p>

<pre><code>function renderBidChange(){
    var cpc = $(this);
    var value = cpc.text().replace('$', '');
    var cell = cpc.parent('.bid');
    cpc.hide();

    var input = document.createElement('input');
    $(input).attr({type:'text',class:'dynamic cpc-input'}).val(value);
    cell.append(input);

    var accept = document.createElement('a');
    $(accept).addClass('accept').attr({'href':'javascript:',
      'title':'Accept Changes'}).text('Accept Changes');
    cell.append(accept);

    var cancel = document.createElement('a');
    $(cancel).addClass('cancel').attr({'href':'javascript:',
      'title':'Cancel Changes'}).text('Cancel Changes');
    cell.append(cancel);

    $(input).focus();
    input.select();
}
</code></pre>

<p><code>cancelUpdate</code> this function just removes everything visible (all the dynamic junk in this case) in the cell and shows what used to be there.</p>

<pre><code>function cancelUpdate(){
    var cell = $(this).parent();
    cell.find(':visible').remove();
    cell.find(':hidden').show();
}
</code></pre>

<p>However, for some reason, the cancel link remains after it is clicked! Everything else is removed except that. W T F</p>

<p>Thanks for any insight you're able to provide! I'm sure it's just some stupid little detail I'm over[caffeinatedly]looking...</p>

<p><strong>UPDATE</strong> Immediately after posting this I epiphanied that it may be a CSS issue, but after double checking my code, it is not.</p>
