bootstrap-editable-rails icon indicating copy to clipboard operation
bootstrap-editable-rails copied to clipboard

If I add toggle option, how to add other params ?

Open sharp opened this issue 11 years ago • 0 comments

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

sharp avatar Aug 07 '13 14:08 sharp