Many scenes will be encountered on the Web page, users like to use Excel, directly to the HTML table content to operate, so write a convenient use of plug-ins
CSDN Download Address: http://download.csdn.net/detail/w172087242/9589681
Upgrade Download Address
Here is the JavaScript code:
/*** * Function: Make the read-only form editable table * Support custom ev
JQuery implements editable tables and jquery edits tables.
You can click the table to edit it directly. Press ENTER or click another part of the page to edit the table. Press Esc to cancel editing.
First, you can click a table to
sorting, addition, editing, viewing, deletion, query (and or query available), refresh records, AND export Excel.
8. dictionary management: jQueryjqGrid displays grid data, Ajax pages, table sorting, addition, editing, viewing, deletion, query (and or query available), refresh records, AND export Excel.
9. Mail sending and receiving management: jQueryHotkeys listens to Keyboard Events, Bootstrap Wysiwyg is used as the rich text editor,
JQuery implements drag-and-drop editable module function code. jquery drag-and-drop
Before sharing the implementation code, we will show you the following:
The specific implementation code is as follows:
Index.html
Inettuts. js
Var iNettuts = {jQuery: $, settings: {columns :'. column ', widgetSelector :'. widget ',
JQuery practice-editable tables
Langfang was snowing, and the second snow in 15 years was a little later than that in 14. The bicycle parked in front of the 11 course became the most beautiful landscape of Langfang Normal University. I still remember that when I was learning css, I used to learn how to write and design some table and form styles, for example, how
Today I learned how to use jQuery to edit a table. In this example, you can click a cell in the foreground table to modify the content. Press enter to save the modified content and esc to cancel the saved content. Principle: When you click a table cell on the client, add a text box to the cell, assign the original cont
When modifying data, we sometimes want to directly modify the data in the table for convenience. To implement the Editable table function, we need to solve the following problems:
1. Identify the columns of the data to be modified in the table (how to find these cells );
2. How to make cells
This tutorial is for editing a table (grid) with a drop-down list (Combobox), where the save is editable, showing the result slice:650) this.width=650; "src=" Http://www.itdatum.net/uploads/webui/2014/0808/20140808002.png "/>Example code:http://www.itdatum.net/webui/extjs/2014/08/7926.htmlOnline Demo:http://www.itdatum.net/online/extjs/examples-itdatum/grid-with-combobox-
The HTML is roughly as follows:(This is only part of it, but the demo is enough)Add an event to the Eidt button in the JS file and implement the. Test-holder Div's editable:Body.on (' click ', '. Text_holder. Btn-group. Edit ', function () {var Divedit = $ (this). Parent (). parent (); if (!divedit) {return; } if (Divedit.children ("input"). Length > 0) {return; } var mtext = Divedit.text (). substring (0, Divedit.text (). length-10); var inputins = $ (":Resources:http://blog.csdn.net/
Edittable.js provides an action to edit the current row of the table, add a row, and delete the current row, where you can set parameters such as:
Operatepos the column used to set the drop operation, starting at 0,-1 for the column in which the last column is placed; (this includes editing the current row, adding a row under the current line, deleting the current row)
Handlefirst sets whether the first row of the
Select drop-down box plug-in jquery. editable-select, jqueryselect drop-down box
There is a requirement in the project. You can select from the drop-down list or enter
Html code
1
Js Code
1 $ ('# noMean '). editableSelect ({2 filter: false, 3 effects: 'fade ', 4 duration: 200, 5 onCreate: function () {6 console. log ("create from the drop-down list") 7}, 8 onShow: function () {9 console. log ("show in the
Implement an editable table Demo:
Instance diagram:
Code:
Copy code The Code is as follows:
Click the table item to edit it.
Student ID
Name
000001
Zhang San
000002
Li Si
000003
Wang Wu
000004
Zhao Liu
Knowledge point:1. $ (function () {}) is short for $ (document). Ready (function.2. In $ ("tbody TD: Even"), ":" indicates filtering. The even is an even
To implement an editable table demo:
Example diagram:
Code:
Copy Code code as follows:
Click on the mouse to edit the table item
School Number
Name
000001
Tom
000002
John doe
000003
Harry
000004
Zhao Liu
Knowledge Points:
1.$ (function () {}) is a shorthand for $ (document). Ready (function () {}).
2.$ ("Tbody Td:even") ":" means f
1, click Object on the PowerPoint Insert menu, open the Insert Object dialog box, select Microsoft Word document, click OK, a Word edit box appears on the slide, and the Table menu appears in the menu bar. Then you can make and manipulate tables like you do in Word, and you can implement the operations and sorting of tables.
2, click Insert-Object
3, can be inserted in different forms of documents
4, immediately after inserting
Ligerui has been studied for a while, and the overall feeling is good. Based on jquery development, the Framework provides a wide range of UI components, especially ligerui tables, with powerful functions.
A small problem occurs when you use ligerui to edit a table.
When the data is not filled with the table, the display effect is no problem.
If th
The content in this article is basically from the video tutorial on itcast.
This example implements a cool function. In a table, double-click it to change it from read-only to editable. In fact, it is easy to think about it. It is nothing more than the following steps:
Double-click the event to find the text box clicked by the mouse.
Save the content in the text box
Replace the text with the input box,
JQuery implements directly editable tables
Function:
Create a table. After you click a cell, you can directly modify the cell text.In the editing status, you can press enter to confirm the modification and Press ESC to cancel the modification.
The effect is as follows:
Ideas:
After clicking a cell, the user immediately inserts a text box into the cell and sets i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.