KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Assuming the following script tag in a random HTML document: <script id="target" type="store"> //random JavaScript code function foo(){ alert("foo"); } foo(); </script> can anybody explain why the following expression doesn't find all elements of script with value store for their type attribute. var sel = $('#target script[type="store"]'); jQuery version: v1.7.2 Chrome version: 25.0.1364.172 (running on Debian Squeeze)
Tags (comma-separated)
Save Edits
Cancel