kodejuice Posted December 19, 2014 Share Posted December 19, 2014 Please how do i accomplish this, an equivalent to jquery .find function/*My Try*/function find(parent, child){ return document.querySelector(parent).querySelector(child);}<ul> <li>First</li></ul>find("ul","li"); //[object LI]//this works fine but, the support for "document.querySelector" is limited, i need and equivalent please. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2014 Share Posted December 19, 2014 If you need to find a replacement for a function, it's called a polyfill. There's one for that here:https://gist.github.com/chrisjlee/8960575 Link to comment Share on other sites More sharing options...
kodejuice Posted December 19, 2014 Author Share Posted December 19, 2014 If you need to find a replacement for a function, it's called a polyfill. There's one for that here:https://gist.github.com/chrisjlee/8960575I'm actually dealing with netscape and not IE Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2014 Share Posted December 19, 2014 Does that not work in Netscape? Why bother with Netscape anyway, the last version was 6 years ago? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now