bootstrap-editable-rails
bootstrap-editable-rails copied to clipboard
If I add toggle option, how to add other params ?
Like this
$("#how").click(function(e) {
e.stopPropagation()
e.preventDefault()
$("#com").editable({
'toggle',
validate: function(value) {
if($.trim(value) == '') {
return 'The content can not be blank!';
}
}
})
})
I want to both 'toggle by other dom' and 'validate blank' feature