SUre I am missing something with this Jquery. Suppose I have a list of n words as so : <div class ="text"><p>word(n)</p></div>
. I want to alert each of the words so I put simply :
var string= $('.text p');
string.each(function(){ldelim}
alert($(this).val());
{rdelim}
);
{rdelim} and {ldelim} are just left braces and right braces because I use smarty. But the alert returns an empty message. Someone could help ?