views:

55

answers:

3

for example:

I want to know if i change anything in this selector then how many places it will effect? How many page are using this selector and which places?

#annualReportInvestorContainer p a {.........}
A: 

I always use grep.

RegDwight
How can you grep a slice of the DOM structure?
angus
Their answer wasn't totally clear, but I'm sure they meant using grep to search in all his files. For example, searching for `id="annualReportInvestorContainer"` would find you where that ID is being used.
DisgruntledGoat
+2  A: 

I think Firebug and DustMeSelectors can help you there. See their docs for more info.

Sarfraz
A: 

Easy with jQuery:

$(document).ready(function() {
 var selector = '#annualReportInvestorContainer p a';
 alert('The selector "' + selector + '" reference to '+ ($(selector).size()) +' element(s)! :O');
});
TiuTalk
will it generate any report, pls tell how to use? how to check whole site?
metal-gear-solid