JQuery Learning(2):JQuery syntax
来源:互联网 发布:windows.old删除不干净 编辑:程序博客网 时间:2024/06/15 07:22
With JQuery, you can select the HTML element,and perform operations.
JQuery syntax examples
$(this).hide()
demonstrate the JQuery hide() function,hide current HTML elements.
$("#test").hide()
demonstrate the JQuery hide() function,hide id="test" elements.
$("p").hide()
demonstrate the JQuery hide() function,hide the all "p" elements.
$(".test").hide()
demonstrate the JQuery hide() function,hide class="test" elements.
JQuery syntax
JQuery syntax forthe selection of HTML elements prepared,can be perform operations.
Basal syntax is:$(selector).action()
- Dollar sign define jQuery
- Selector sign (selector)query and find the HTML elements
- JQuery's action perform operations for the elements
examples:
$(this).hide() --- hide current elements
$("p").hide() --- hide all "p" elements
$("p.test").hide() --- hide all class ="test" "p" elements
$("#test").hide() --- hide all id='test' elements
Cue:JQuery uses the xpath syntax with the CSS selector syntax combination.- JQuery Learning(2):JQuery syntax
- jquery-syntax动态语法着色
- JQuery Learning(1):JQuery introduction
- JQuery Learning(3):JQuery selector
- JQuery Learning(4):JQuery events
- JQuery learning(5):JQuery effect
- JQuery learning note2
- Learning jQuery 1.3
- 《Learning jQuery 1.3》
- JQuery learning notes.
- Learning jQuery one
- jquery Syntax error, unrecognized expression:的解决方法
- jquery: Uncaught Error: Syntax error, unrecognized expression:
- Jquery 3.1.1 Syntax error, unrecognized expression: #
- JQuery learning(6):JQuery callback function
- jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: blank
- learning jQuery学习笔记一 -- 选择符
- Solutions to <Learning jQuery> Chapter 3
- ASSERT: "width > 0.0" in file painting\qrasterizer.cpp, line 710
- Linux系统上安装ArcGIS License Manager
- 如何搭建虚拟服务器
- iOS创建不带nib文件的工程之三--将window和自定义的view及viewController关联起来
- LAMP-4安装PHP
- JQuery Learning(2):JQuery syntax
- arm的LCD的学习
- Install matlab 2010a under Ubuntu 11.10
- DIV限制宽度,字符断行,避免变形
- arm的那本书的ADC那儿没有看呢,暂时先去研究研究UBOOT吧,恩恩
- 通过IP获取地理位置
- 编译软件VS2005 及更高级版本的兼容性问题“违反了...约束”
- 在Linux上通过Java连接MongoDB服务进程mongod
- Java反射机制剖析(三)-简单谈谈动态代理