Home > Web Front-end > JS Tutorial > Solutions to compatibility issues caused by different writing methods of jQuery_jquery

Solutions to compatibility issues caused by different writing methods of jQuery_jquery

WBOY
Release: 2016-05-16 18:22:13
Original
1075 people have browsed it

It probably looks like this:

Copy code The code is as follows:





< ;td>***





*** *** *** *** ** * ***


I want to use jquery to The tr after the title was removed, so I used the statement: $("#title~tr").remove(); the result was that it could be removed under Firefox, but not under IE. I was dizzy, and then I changed it. Change the writing method to: $("#title").siblings("tr").remove();, try this, it works, haha, it seems that although jQuery is easy to use, if used improperly, problems will still occur. Problem!

PS: Other data in the table are also filled in using jQuery.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template