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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:12:57+00:00 2026-06-07T16:12:57+00:00

I have jeditable fields that are updated by AJAX so am using .live ()

  • 0

I have jeditable fields that are updated by AJAX so am using .live() in conjunction with Jeditable to be able to persistantly bind the jeditable fields after AJAX update. However by using live() it suppresses the first ‘click’ and it is the second click that makes the field editable.

Interestingly (and perhaps key to the solution) is if I use ‘this’ as the reference the first click is suppressed for every individual jedtxt class field (ie. need to click twice to enter field A jedtxt and then twice again to enter edit for field B jedtxt), but if I use the class name ‘.jedtxt’ the first click is only suppressed once (need 2 clicks to enter field A, but after that field B can be entered via a single click – appears to ‘remember’ the first click across the class.

Using $(this) Suppresses first click every time a jedtxt class element is clicked:

$('.jedtxt').live('click', function() {
$(this).editable('/post/somewhere',{ // note use of $(this)
'submit': 'OK',});});

Using $(‘.jedtxt’) Suppresses first click first time only a jedtxt class is clicked:

$('.jedtxt').live('click', function() {
$('.jedtxt').editable('/post/somewhere',{ // note use of $('.jedtxt')
'submit': 'OK',});});

And the jedtxt elements are like:

<div id="ni-50" name="ni-50" class="jedtxt">somevalue to edit</div>

While the second case is slightly better I am still looking for the click to edit to work directly on the first click. Note I tried double-click or other event triggers and the problem is the same. This is a vanilla test page with no other events linked to the div element.

Thanks in advance for any assistance on this.

  • 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-06-07T16:12:59+00:00Added an answer on June 7, 2026 at 4:12 pm

    I suggest you read this topic:

    Problem with jQuery edit-in-place with live() function.. need a ninja

    The guy in the second solution solved it with

    $(this).trigger('click');
        $('.editable').live('click',function() {
    
        $('.editable').editInPlace({
            callback: function(unused, enteredText) { return enteredText; },
            bg_over: "#cff",
            field_type: "textarea",
            textarea_rows: "5",
            textarea_cols: "3",
            saving_image: "./images/ajax-loader.gif"
        });  
        $(this).trigger('click');
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textarea that I'm able to edit with the jeditable plugin but
I have some fields that my users cannot be allowed to edit - however,
I have been using the JEditable plugin for JQuery and I would like to
I have a field being updated by jeditable. I want to output a warning
I have a javascript array that I am using as a data source in
I have an NSTableView that has one column of editable fields. Cell editing works
I'm using Jeditable to edit dozens of fields such as first_name, last_name, birthday, etc.
The idea is that I have a form with two editable fields, data is
I'm using full calender and I have a few events that are all day
I have an activity that contains several user editable items (an EditText field, RatingBar,

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.