SelectorExampleSelects*$("*")All elements#id$("#lastname")The element with id="lastname".class$(".intro")All elements with class="intro".class,.class$(".intro,.demo")All elements with the class "intro
没有具体的说怎么怎么,只是把大致的方法和思路记录下。资料文档上很详细。<html> <head> <title>jquery元素定位</title> <!--引入jquery--> <script src="jquery-1.6.4.js"><
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号