Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sharp opened this issue Aug 7, 2013 · 0 comments
Open

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

sharp opened this issue Aug 7, 2013 · 0 comments

Comments

@sharp
Copy link

sharp commented Aug 7, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant