<span id="example-text"><button class="btn btn-success">Click Me</button></span>
$("#example-text").inlineEdit({
type: 'text',
onChange: function (e, text, html) {
$("#example-text-status").text("Changed");
},
onEdit: function (e) {
$("#example-text-status").text("Being Edited");
},
onNoChange: function(e) {
$("#example-text-status").text("Not Change");
}
});
|
<span id="example-select"><button class="btn btn-success">Click Me</button></span>
$("#example-select").inlineEdit({
type: 'select',
data: {
'default': 'Click Me',
'opt-1': 'foo',
'opt-2': 'bar'
},
onChange: function (e, text, html) {
$("#example-select-status").text("Changed");
},
onEdit: function (e) {
$("#example-select-status").text("Being Edited");
},
onNoChange: function (e) {
$("#example-select-status").text("Not Change");
}
});
|
<span id="example-textarea"><button class="btn btn-success">Click Me</button></span>
$("#example-textarea").inlineEdit({
type: 'textarea',
onChange: function (e, text, html) {
$("#example-textarea-status").text("Changed");
},
onEdit: function (e) {
$("#example-textarea-status").text("Being Edited");
},
onNoChange: function (e) {
$("#example-textarea-status").text("Not Change");
}
});
|