02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS<br />

INSPECTING HTML USING THE ELEMENT INSPECTOR IN FIREBUG<br />

You can also see this <strong>by</strong> using the element inspection tool provided <strong>by</strong> Firebug. Near the top left of the<br />

console, there's a button that looks like a mouse cursor over a rectangle (see Figure 2-3). Click it to<br />

activate the element inspector.<br />

Figure 2-3. The button to activate the element inspector<br />

After the inspector is active, you can hover over different elements in the browser, <strong>and</strong> they'll highlight<br />

with a blue outline. Hover over one of the paragraphs you just appended text to, <strong>and</strong> click it. This brings up<br />

the HTML panel of Firebug with the current element collapsed <strong>and</strong> highlighted, <strong>and</strong> a tab to exp<strong>and</strong> the<br />

element (see Figure 2-4).<br />

41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!