Alerting Attribute Content
<p><a href="http://jsbin.com/uzogag/2/edit" rel="nofollow">http://jsbin.com/uzogag/2/edit</a></p>

<p>I've attempted and searched for jQuery code that will alert "English" from the attribute selector. It's simple a newbie questions, but a good exercise. Would some kind soul lend wisdom?</p>

<p><strong>JavaScript</strong></p>

<pre><code>$('p[language]').alert(this.text());
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt;
&lt;meta charset=utf-8 /&gt;
&lt;title&gt;JS Bin&lt;/title&gt;
&lt;!--[if IE]&gt;
  &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;

&lt;/head&gt;
&lt;body&gt;
  &lt;h1&gt;Select elements with specific text:&lt;/h1&gt;
    &lt;div&gt;
    &lt;p&gt;This is paragraph 1.&lt;/p&gt;
    &lt;p language="English"&gt;This is paragraph 2.&lt;/p&gt;
    &lt;p&gt;This is paragraph 3.&lt;/p&gt;
    &lt;p&gt;This is paragraph 4.&lt;/p&gt;
    &lt;/div&gt;
  &lt;form&gt;
     &lt;input type="button" value="Select" onclick="setStyle()"&gt;&lt;/input&gt;
  &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
