views:

25

answers:

0

The cell that is editable contains either 0 or 1 (not Active or Inactive). How do I make it selected? I have tried something like below:

$('#isEditable).editable("post.php?type=myPost", {

data   : " {'0':'Inactive','1':'Active','selected':'"+<< put value of the clicked on cell here >>+"'}",
type   : 'select'

});

Currently Inactive is always selected.