Skip to content Skip to sidebar Skip to footer

Jquery Slider Typeerror: $(...).getelementsbytagname Is Not A Function

This code in localhost working correctly.

Solution 1:

getElementsByTagName() is a native DOM function on the document and other DOM element objects, not a jQuery function.

For instance, document.getElementsByTagName("p") works, or $(document)[0].getElementsByTagName("p"), but it's not a function of a jQuery object directly ... you have to access the underlying native DOM elements the jQuery query object is wrapping before you can call getElementsByTagName() and other native DOM query functions. What you really want to use for the native jQuery object is something like either the children() or find() methods, both of which can take selector strings.

Post a Comment for "Jquery Slider Typeerror: $(...).getelementsbytagname Is Not A Function"