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 6701337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:55:21+00:00 2026-05-26T06:55:21+00:00

When I trigger jeditable I want to set the initial textarea value to an

  • 0

When I trigger jeditable I want to set the initial textarea value to an empty string, hence:

function wireupTagInPlaceEditing() {
    $('.newtag-editable-target').editable(submitTagEdit, {
        event: 'tagthumbnailnewtag',
        type: 'textarea',
        submit: 'Ok',
        cancel: 'Cancel',
        cssclass: 'tag-inplace-textarea-edit'
    });

    $('.newtag-editable-target').click(function () {
        $(this).trigger('tagthumbnailnewtag');
        $(this).find('textarea').val('');
    });
}
function submitTagEdit(value, settings) {
    alert('tag edit complete ' + value);
}

However, on completion of the edit, value is empty (even though I have entered something). Do I need to do something special to wire-up the value and settings parameters? I am using jeditable 1.7.1

Edit
Snippet of my html:

<ul><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="xx8REtGOuEiPGwRuTxtC7w==">Articulated Truck</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="93yW9fJP7EeHwmPhKVcXLw==">Backhoe Loader</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="/lYmf80zA0u1UBpP9fYwjg==">Cold Planers</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="QRK9mI5xlkaWVD1EgSd48A==">Compactors</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="s9ckJ+/41U+xU+OZ2vQGvA==">Compact Track and Multi-terrain Loader</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="wtdp/loQp0e00akaU3hIvw==">Feller Buncher</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="zsaNLg3640ill5KBTJ3QVQ==">Forest Machines</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="rungSduACkqkoMKR0JKl0Q==">Forwarders</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="Qjez3j0CAE26gTbUf9CbJg==">Harvesters</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="B6JDNj8HD0yNaSHT5asKMQ==">Hydraulic Excavators</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="Ib9gJT8zBkmoVB3KM0eQSw==">Industrial Loaders</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="2782jTgXCEevbAsqm1rSnw==">Knuckleboom Loaders</div></li><li><div class="tagtitle">Machine</div><div class="tagtext" tagkey="9dCpblCyxUe4v2Hx8/4ufQ==">Material Handlers</div></li><li class="clickfornewtag"><div class="tagtitle">Machine</div><div class="tagtext newtag-editable-target">click here to add a new Machine tag</div></li></ul>

Edit2
The following amendment works:

$('.newtag-editable-target').click(function () {
        $(this).trigger('tagthumbnailnewtag');
        setTimeout(function () {
            $('.newtag-editable-target').find('textarea').val('');
        }, 1);
    });

No idea what’s going on.

  • 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-26T06:55:22+00:00Added an answer on May 26, 2026 at 6:55 am

    Try returning the value in your submitTagEdit function:

    function submitTagEdit(value, settings) {
        alert('tag edit complete ' + value);
        return value;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often want to trigger a certain function just once, but I need to
Using jQuery plugin jEditable. Problem I'm having is that I want whatever is editable
How do you trigger a javascript function using actionscript in flash? The goal is
So I want to trigger an event (pausing/unpausing some media) whenever the user presses
How do I trigger a delay, let's say I want to call a method
I want to trigger an event that causes the ScrollPane to start scrolling up
$(.trigger).click(function () { $(this).next(.toggle).slideToggle(fast); $(this).toggleClass(active); return false }); HTML: <input type=checkbox class=trigger> <div class=toggle>content</div>
I want to trigger one event on page load complete using javascript/jquery. Is there
I would like trigger the drag target control to redraw itself (via either invalidate
I have a field being updated by jeditable. I want to output a warning

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.