1 | <!DOCTYPE html> |
---|
2 | |
---|
3 | <html lang="en"> |
---|
4 | <head> |
---|
5 | <meta charset="utf-8"> |
---|
6 | <meta name="author" content="matt.wilson"> |
---|
7 | <meta name="description" content=""> |
---|
8 | |
---|
9 | <title>Title</title> |
---|
10 | |
---|
11 | <link rel="icon" href=""> |
---|
12 | <script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script> |
---|
13 | <script type="text/javascript" charset="utf-8"> |
---|
14 | $(function() { |
---|
15 | // works |
---|
16 | console.log($("input[style*=blue]")); |
---|
17 | |
---|
18 | // doesn't work |
---|
19 | console.log($("div").find("input[style*=blue]")); |
---|
20 | |
---|
21 | // works |
---|
22 | console.log($("div").find("input[name*=foo]")); |
---|
23 | |
---|
24 | }) |
---|
25 | </script> |
---|
26 | </head> |
---|
27 | |
---|
28 | <body> |
---|
29 | <header> |
---|
30 | |
---|
31 | </header> |
---|
32 | <div> |
---|
33 | <input style="color: blue;" name="foo"> |
---|
34 | WOOT WOOT |
---|
35 | </input> |
---|
36 | </div> |
---|
37 | <footer> |
---|
38 | |
---|
39 | </footer> |
---|
40 | </body> |
---|
41 | |
---|
42 | </html> |
---|