Get number of paragraphs in column 2

Submitted by:David Villa

Date added:26 November, 2011

Category:jQuery

Get number of paragraphs in column 2 and display that number in an alert box. Including the one in the red box.

Tags: alert box

Code Snippet:

$("input.buttonAsize").click(function(){ alert($("div.contentToChange").find("p").size()); });
$("a.codeButtonA").click(function(){$("pre.codeA").toggle()});
 
 

Comments