■[attribute^='value'] 特定の属性の値が、特定の文字列で始まっている要素を指定できます。 ▼サンプルコード(HTML部分) <ul> <li title="first">テキストテキストテキストテキストテキスト</li> <li title="second">テキストテキストテキストテキストテキスト</li> <li title="third">テキストテキストテキストテキストテキスト</li> <li title="fourth">テキストテキストテキストテキストテキスト</li> </ul> ▼サンプルコード(スクリプト部分) $(function(){ $("[title^='f']").css("color","red"); }) ▼実行結果(実際のWebページ) title属性の値がfで始まる文字列である要素、つまり1行目と4行目のli要素が赤色になります。
![初めてのjQuery:セレクターAPIを一挙解説(後編) (2/5)](https://cdn-ak-scissors.b.st-hatena.com/image/square/2c5cc038747f851a6643024dc05c0165ccaeecdd/height=288;version=1;width=512/https%3A%2F%2Fascii.jp%2Fimg%2F2009%2F07%2F22%2F240489%2Fl%2F947ffd95838c8645.jpg)