Question :
I need to filter each letter in the paragraph tag using jquery each but it is not working .
HTML
<p id="check">This is kamesh</p>
jQuery
var text = $(this).text(),
jQuerytext = $(this) ,
funtext ='' ,
colorToggle = true;
$.each( text, function( key , value ){
console.log(value); //Value is empty
});
I know the problem is in accessing the variable 'text' but I can't able to sort it off .. Thanks in advance
textis not an array, it's a string.textto an array, then you are throwing out that array and replacingtextwith a string.alert()for trouble-shooting. Spread the word.alert()" FIFY