You can use jQuery filter function to identify all the DIVs without text as displayed below.
Cheers
Samitha
$('.heading').filter(function(i,src){
return $.trim($(src).text()).length == 0;
}).css('cursor', "pointer");
Cheers
Samitha