How to submit data on mouse out in jeditable

How to submit data on mouse out in jeditable

dhruti3dhruti3 Posts: 2Questions: 1Answers: 0
edited April 2019 in Free community support

Here's my code:

salesDataTbl.$(edit).editable(theCallback, {
                            tooltip: 'Click to edit and press enter',
                            "callback": function (sValue, y) {
                            
                            },
                              "submit": "",
                            "onblur": 'submit',
});

I have jeditable datatable.
I do not want the data to be saved onblur. What my implementation is that I have a "Save" button(outside of my table) which takes the values and then saves the values in the database.
I do not want the "OK" button, hence I have the code "submit": ""
What is happening is that I have to either press enter or click outside of my table to retain the values.
What I require is that when I click "Save" button, onblur should be called so that the values are retained(or some other mechanism to retain the data on click of the button), which is not happening.

Answers

  • dhruti3dhruti3 Posts: 2Questions: 1Answers: 0

    salesDataTbl.$(edit).editable(theCallback, {
    tooltip: 'Click to edit and press enter',
    "callback": function (sValue, y) {

    },
    "submit": "",
    "onblur": 'submit',
    });

  • kthorngrenkthorngren Posts: 20,322Questions: 26Answers: 4,774

    This site is for Datatables. Looks like you are using jeditable which is a different jQuery plugin. Please use their support mechanism:
    https://jeditable.elabftw.net/

    Kevin

This discussion has been closed.