Editable Table: jQuery + PHP + jeditable allows you to edit table fields in real time.

Source: Internet
Author: User
Editable Table: jQuery + PHP + jeditable allows you to edit table field content in real time. This is a super practical jquery plug-in called jeditable, which is the legendary real-time editing plug-in. Real-time editing is a function that enables you to modify the content of a webpage without refreshing the content, and displays the modification result instantly without refreshing the content. Editable tables: jQuery + PHP + jeditable allows you to edit table fields in real time.

This article describes a super practical jquery plug-in called jeditable, which is the legendary real-time editing plug-in. Real-time editing is a function that enables you to modify the content of a webpage without refreshing the content, and displays the modification result instantly without refreshing the content. For more information, see the demo on the official website of the plug-in: http://www.appelsiini.net/projects/jeditable/custom.html. Click on the editable tab!

// Parameter settings

$ ('. Edit'). editable ('Save. php ',{
Width: 120,
Height: 18,
// Onblur: "ignore ",
Cancel: 'Cancel ',
Submit: 'OK ',
Indicator :'',
Tooltip: 'Click to edit ...',
Callback: function (value, settings ){
$ ("# Modifiedtime" ).html ("just ");
}

// Select parameter settings. for other methods, see reference 1.

$ ('. Edit_select'). editable ('Save. php ',{
Loadurl: 'json. php ',
Type: "select ",
Cancel: 'Cancel ',
Submit: 'OK ',
Indicator :'',
Tooltip: 'Click to edit ...',
Style: 'display: inline'
});


// Call the datepicker calendar plug-in of jquery ui
$. Editable. addInputType ('dateicker ',{
Element: function (settings, original ){
Var input = $ ('');
Input. attr ("readonly", "readonly ");
$ (This). append (input );
Return (input );
},
Plugin: function (settings, original ){
Var form = this;
$ ("Input", this). datepicker ();
}

Download demo

Reference 1

Exam document 2

Exam Document 3

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.