Created
March 13, 2014 02:56
-
-
Save ituki/9521173 to your computer and use it in GitHub Desktop.
【jQuery】引用符とエスケープを覚える ref: http://qiita.com/ituki_b/items/434f46929a49cc017428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a[href=\'http://qiita.com\']') //シングルクオート(')とエスケープ(\) | |
$("a[href=\"http://qiita.com\"]") //ダブルクオート(")とエスケープ(\) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a[href="http://qiita.com"]') //外側はシングルクオート(')で内側はダブルクオート(") | |
$("a[href='http://qiita.com']") //外側はダブルクオート(")で内側はシングルクオート(') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment