Mega Code Archive

 
Categories / JavaScript DHTML / Jquery
 

To display the text of all paragraphs in an alert box the first time each of them is clicked

$("p").one("click", function(){   alert( $(this).text() ); });