Editor's Table: Jquery+php+jeditable enables real-time editing of table field content

Source: Internet
Author: User
Editable tables: Jquery+php+jeditable enables real-time editing of table field content

Introducing a super-practical jquery plugin called jeditable, the legendary instant edit plugin . The so-called instant editing is to implement a feature that modifies the content of a webpage without refreshing, and instantly displays the result of the change without refreshing it. For example, see the plug-in official website demo:http://www.appelsiini.net/projects/jeditable/custom.html, click on the text can be modified!

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, other ways see link Reference document 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 plugin for the jquery UI
$.editable.addinputtype (' DatePicker ', {
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 ();
}

Demo download

Reference Document 1

Document 2

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.