I have a series of divs in a pattern of header/body, where a click on the header will show the body in question.
This all happens with .click initialized on page ready..
be sure that you added the click event handling after the DOM has been loaded you can include this on the head element:
var Areas = ['ping','http', 'smtp', 'pop3'];
$(document).ready(function() {
$.each(Areas, function(i, v){
var Area = '#show_fold_' + v;
$(Area).click(function() {
alert(Area);
});
});
}