Hi, I have a function that splits each letter from a span text and wrap it into an em. It works but the first letter from the span is not wrapped. How can I wrap that letter also in em?
<script>
jQuery(document).ready(function(){
$(".nsplit").live('click', function(){
var newSplit = $("#selectable1 span.cica").text().split("").join("</em><em>");
$("#selectable1 span.cica").html(newSplit);
});
});
</script>
Thank you.