text

http://api.jquery.com/text/

Get the combined text contents of each element in the set of matched elements, including their descendants后裔, or set the text contents of the matched elements.

html

http://api.jquery.com/html/

Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.

val

http://api.jquery.com/val/

Get the current value of the first element in the set of matched elements or set the value of every matched element.

each

https://api.jquery.com/each/

.prop()

http://api.jquery.com/prop/

Get the value of a property for the first element in the set of matched elements or set one or more properties for every matched element.

.parent()

https://api.jquery.com/parent/

Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

.next()

https://api.jquery.com/next/

Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

.eq()

https://api.jquery.com/eq/

Reduce the set of matched elements to the one at the specified index.

.on()

http://api.jquery.com/on/

Attach an event handler function for one or more events to the selected elements.

http://live.datatables.net/depawowa/1/edit

jQuery.data()

https://api.jquery.com/jquery.data/

Store arbitrary data associated with the specified element and/or return the value that was set.

.toggleClass()

http://api.jquery.com/toggleclass/

Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

使用场景http://live.datatables.net/kuwaduta/1/edit

jQuery.each

http://api.jquery.com/jquery.each/

$(this)

https://stackoverflow.com/questions/4735342/jquery-to-loop-through-elements-with-the-same-class

Use each: 'i' is the postion in the array, obj is the DOM object that you are iterating (can be accessed through the jQuery wrapper $(this) as well).

$('.testimonial').each(function(i, obj) {
//test
});

Check the api reference for more information.

最新文章

  1. XML创建与解析常用方法介绍
  2. 交换机做Channel-Group
  3. POJ 2253 Frogger -- 最短路变形
  4. [SQL]开启事物,当两条插入语句有出现错误的时候,没有错误的就插入到表中,错误的语句不影响到正确的插入语句
  5. HTML a 标签 下载 apk 文件
  6. SQL 把查出来的信息整合为一张表
  7. [转载]介绍一个JSONP 跨域访问代理API-yahooapis
  8. 冒泡排序和快速排序的java实现
  9. WPF翻转动画
  10. 后台进程弹Toast的几种方案
  11. Laravel使用Seeder自动填充数据
  12. 这应该是目前最快速有效的ASP.NET Core学习方式(视频)
  13. SpringBoard 无法启动应用程序(错误:-3)
  14. Python爬虫入门教程 43-100 百思不得姐APP数据-手机APP爬虫部分
  15. Docker安装rabbitmq
  16. Atcoder | AT2665 【Moderate Differences】
  17. JavaScript编程语言
  18. Sql_server基本操作
  19. kafka管理器之kafka-manager
  20. obv15 实例6:如果K线柱过多,ZIG将发生变动,导致明显的OBV15指标被隐藏!

热门文章

  1. 6月7号shiro
  2. 5.13会话技术Cookie---Session
  3. CentOS 安装dotNetCore
  4. YOLO训练Pedestrain
  5. 【PostgreSQL-9.6.3】函数(3)--日期和时间函数
  6. 2星|《工业X.0》:物联网的资料汇编
  7. 学习廖雪峰的Python教程之第一个Python程序
  8. java Web(2)
  9. jsonp的作用
  10. 【笔记】Linux就该这么学-第六课第四章