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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:37:38+00:00 2026-06-09T19:37:38+00:00

I use http://www.arashkarimzadeh.com/jquery/7-editable-jquery-plugin.html edit-inplace plugin. For a single editable element it works fine but

  • 0

I use http://www.arashkarimzadeh.com/jquery/7-editable-jquery-plugin.html edit-inplace plugin.

For a single editable element it works fine but I have many on my project. When I click on an element the following happens:

enter image description here

The actuall text disappears. Instead an <input> element appears. Everything I do is

$('th,td').editable();

But the table is loaded dynamically into the DOM so:

$('#id').load('template.html', function() {
    $('th,td').editable();
});

Any idea what is wrong here? Do you have an idea how to solve this?

http://jsfiddle.net/2gYw2/6/ (Not working) – Add the element and click to edit it then click on td or th to see the problem.

  • 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-09T19:37:40+00:00Added an answer on June 9, 2026 at 7:37 pm

    In fact you should call the method editable one time, no more.
    I found 2 possibilities to solve this (maybe there are more solutions).

    1. you create an array and store the objects which have been called with editable().
    2. you add a variable to flag the call of editable in the jQuery Object

    I prefer the second solution because I found it more easily to use. I just add a new function to jquery to do this.

    EDIT :

    I replace the variable by a class to the HTMLElement.

    (function($){
        $.fn.refreshEditable = function(){
            $(this).each(function(){
                if(!$(this).hasClass("not-editable")){
                  $(this).addClass("not-editable");
                  $(this).editable();
                }
            });
        }        
    })( jQuery );
    
    
    $('th,td,h2').refreshEditable();
    
    $('#addTable').click(function(){
        $('body').append("<div><h2>Add element</h2></div>");
        $('th,td,h2').refreshEditable();
    });
    

    I assume it is little bad to do this but it works. The example in live here.

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

Sidebar

Related Questions

I'm trying to use http://www.asual.com/jquery/address/ for history management, this works absolutely fine when we
I use jquery picnet table filter - http://www.picnet.com.au/picnet-table-filter.html I need to display count of
I'm trying to use http://www.flexablecoder.com/blog/index.cfm/memcached client. All works ok but for each cfm call,
Code: http://jsfiddle.net/n3mcH/ I use http://www.cssstickyfooter.com/using-sticky-footer-code.html . The footer is attached to the bottom, but
For example to get the favicon of a site I can use http://www.google.com/s2/favicons?domain= and
I'm trying to use this font: http://www.fontsquirrel.com/fontfacedemo/eb-garamond So I download the type kit and
I want to use this function: http://www.frankmacdonald.co.uk/php/post-to-wordpress-with-php.html Its used to post to Wordpress using
I use file_get_contents(http://www.mydomain.com); to get the content. Then I need to search through it
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html I have to use standard analyzer during indexing with custom stopwords . How
What url do you use for it because http://www.red5.org/projects/red5plugin/update_0.1.x/ gots redirected to http://code.google.com/p/red5/ ,

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.