jQuery to add comma's after elements on drag, drop, copy or paste?
<p>I'm using the code below to dynamically add a highlight class to my span tags that are children of my "my_related_kw" div. </p>

<p>I'm currently adding a hard coded comma after each span tag, so that when the keywords are copied and pasted into the "Tags" input field, they are separated with commas.</p>

<p>However, I don't really want the comma's to show up on screen. Can I use jQuery to add the commas only when the content is pasted or when the copy or drag event is triggered?</p>

<pre><code>var html = jQuery('#content').html().toLowerCase();
    jQuery(".my_related_kw").find("span").filter(function() {
        return html.indexOf(jQuery(this).html()) != -1;
    }).each(function() {
        jQuery(this).addClass('highlight');
    });
},
</code></pre>
