So my first Jquery script looked like this. $(function(){alert("I'm ready")}); Jquery object methods and DOM object methods cannot be mixed. For example, $("#id").innerHTML or document.getElementById("id").html() are both wrong. Conversion between Jquery objects and DOM objects. The objects returned by the Jquery selector are actually returned as object arrays, so array subscripts can be used for conversion. You can also use the get(index) method in Jquery
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn