Home > Web Front-end > JS Tutorial > body text

jquery study notes 2: Implement editable tables_jquery

WBOY
Release: 2016-05-16 18:29:46
Original
805 people have browsed it

Implement editable table demo:

Example picture:
jquery study notes 2: Implement editable tables_jquery

" -//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
















Name


















< /table>





Knowledge points:
1.$(function() {}) is the abbreviation of $(document).ready(function() {}).
2. ":" in $("tbody td:even") means filtering, and even is an even function. The filtering conditions can be found in the selector of the help document. This sentence means to return the even number td in tbody, and the result is a set.
3. In the event $(this) will return the jquery object of this control.
4.children("input") means to get all the jquery objects whose child elements contain input, and the result is a collection.
5.css("border-width", "0") means setting the value of the css attribute.
6.trigger("focus").trigger("select") means that the setting event triggers focus first and then triggers select.
7.keyup(function(event) {var keycode = event.which;}) means registering keyboard events, and the which attribute of the parameter event stores keyboard information.
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

Click the table item with the mouse to edit it

Student ID

000001

Zhang San

000002

李思

王五

000004

Zhao Liu