Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014428
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:29:45+00:00 2026-05-20T09:29:45+00:00

I am using jquery’s editable and with submit and cancel I also want to

  • 0

I am using jquery’s editable and with submit and cancel I also want to 1 extra button for other functionality… can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:29:46+00:00Added an answer on May 20, 2026 at 9:29 am

    you have to extend the plugin… do the following changes in the source

    onEdit: null,
                onSubmit: null,
                onPopup: null, //function to be called when you click your custom popup button
                onCancel: null,
                editClass: null,
                submit: null,
                popup: null, //your custom popup button
                popupBy: 'blur', //blur, change, dbclick, click
                cancel: null,
                type: 'text', 
    

    after that you’ll have to define the options like

    // popup event 
                if (opts.popup) {
                    $('<button/>').appendTo($this)
                            .html(opts.popup)
                            .one('mouseup', function () { opts.toNonEditable($(this).parent(), true) });
                } else
                    $this.one(opts.popupBy, function () { opts.toNonEditable($(this), true) })
                     .children()
                        .one(opts.popupBy, function () { opts.toNonEditable($(this).parent(), true) });
    

    finally add the following to the source to call user defined functions

     // Call User Function
                var func = null;
                if ($.isFunction(opts.onSubmit) && change == true)
                    func = opts.onSubmit;
                else if ($.isFunction(opts.onCancel) && change == false)
                    func = opts.onCancel;
                else if ($.isFunction(opts.onPopup) && change == true)
                    func = opts.onPopup;
    

    if everything go fine you can use it as

    $('selector').editable({
        type: 'select',
        options: { 'value1': 'Item 1', 2: 'Item 2', 'Item 3': 'Item 3' },
        submit: 'save',
        popup:'click to open popup',
        cancel: 'cancel',
        editClass: 'colored',
        onEdit: editFuncion,
        onPopup:popupFunction,
        onSubmit: submitFuncion
    });
    
    function popupFunction() { 
    
    // your logic to open popup
    
    }
    

    Disclaimer

    i have not tested it so i cannot confirm whether it’ll work or not but you’ll get the idea

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jquery, How can I create multiple draggables using loops through javascript? I want
Using jQuery I want to check if checkboxes or radio button inside a div
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, one can easily find out whether a particular element is visible using
Using jQuery, I make these changes in the DOM: $(document).ready(function() { $('.editable').click(function() { var
Using JQuery I am trying to perform validation and also get the values of
Using jquery, how can I find the first div that contains an input with
Using jQuery, I want to check if the text of a link I'm clicking
using jquery, how can you distinguish between refreshing vs. navigating away from the current
Using jquery how can one add a black border around all p elements that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.