[jQuery] Re: escaping . in div identifiers!

2007-11-29 Thread Wizzud
Example that works: $(document).ready(function(){ $('.clic').click(function(){ var s = '#b'+$(this).text().replace(/\./g,'\\.'); $(s).text(s); }); }); LX.E620Y.002 On Nov 29, 9:09 pm, jonnybravo <[EMAIL PROTECTED]> wrote: > ps heres the important parts of the pastebin for your con

[jQuery] Re: escaping . in div identifiers!

2007-11-29 Thread jonnybravo
ps heres the important parts of the pastebin for your convenience: function addCart(code,session){ $("#b\\[code\\]\\").html(''); $.post("index.php?p=viewCart&add="+code, function(data){ $('#cartbox').fadeOut( 'normal', function() { $(this).load('includes/check_sum.box.p