Mega Code Archive
Categories
/
JavaScript Tutorial
/
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() ); });