How do I reference attributes of field(s) associated with a clicked cell in a bubble edit?

How do I reference attributes of field(s) associated with a clicked cell in a bubble edit?

seiser01seiser01 Posts: 17Questions: 9Answers: 0

For example, I'd like to display the value of the field label and field name as in the code segment below.

How do I reference each of these?

function processGoalsObsData() {
// This function process the incoming data and renders it to the screen

// Activate a bubble edit on click of a table cell

$('#tblEditGoalObs').on( 'click', 'tbody td:not(:first-child)', function (e) {

alert("Field label = " +**_ ?????_**)        
alert("Field name = " +**_ ?????_**)        

    obs_editor.bubble( this, {
        buttons: { label: '<b>Save</b>', fn: function () { 
                this.submit(); 
            } 
        }
    }  );

} );

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    You could do something like this: http://live.datatables.net/divezavi/1/edit

    This will use the bubble edit to get the attributes, so it will be displayed after the edit begins, and therefore may not be exactly what you're looking for. Could you take a look and see if it fits the bill, please.

    Colin

This discussion has been closed.