wwEditable.jQuery.makeEditable

jQuery plug in method that allows making any selected elements editable in batch.

// *** Make a single table column editable var sel = jQuery(".namecolumn").makeEditable(colUpdated,{ updatedColor: "green" }); function colUpdated(value, editable) { if (editable.origText == editable.enteredText) return false; showMessage("Updated with: " + value); return true; // update value }


o.wwEditable.jQuery.makeEditable(selector,callback,options)                 

Parameters

selector
jQuery selector that sets the elements that will be made editable.

callback
A callback function that is called when focus is lost from editing.

options
Options that map the properties of the wwEditable object (ie. { updateColor:"green",extraData:"myColumn"} )


See also:

Class wwEditable


  Last Updated: 1/27/2008 | © West Wind Technologies, 2008