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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:20:15+00:00 2026-06-06T08:20:15+00:00

jeditable settings $(‘.editable’).editable(‘includes/notes/save.php’, { loadurl : ‘includes/notes/load.php?id=’ + $(this).find(div).prop(id),//undefined child ID type : ‘text’,

  • 0

jeditable settings

$('.editable').editable('includes/notes/save.php', {
    loadurl     : 'includes/notes/load.php?id=' + $(this).find("div").prop("id"),//undefined child ID
    type        : 'text',
    onblur      : 'submit',
    indicator   : '<img src="includes/notes/indicator.gif">',
    style       : 'display: inline'
});

html

<tr class="items">
    <td>
        <?php echo $data['item_name']; ?>
    </td>

    <td>
        <div class="editable inventory-notes">
            <!-- need to get the child id below into jeditable -->
            <div id="<?php echo $data['id']; ?>">
                <div class="add_note"></div>
                <div class="edit_note"></div>
                <div class="delete_note"></div>
            </div>
        </div>
    </td>

</tr>

How can I get the ID $data['id'] into jeditable loadurl ? I am using jQuery 1.6.2. The data set has around 1,200 rows.

  • 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-06T08:20:17+00:00Added an answer on June 6, 2026 at 8:20 am
    var id = $('.editable').find("div:first").attr("id");
    
    $('.editable').editable('includes/notes/save.php', {
        loadurl     : 'includes/notes/load.php?id=' + id
        type        : 'text',
        onblur      : 'submit',
        indicator   : '<img src="includes/notes/indicator.gif">',
        style       : 'display: inline'
    });
    

    I see that second argument of .editable() is an Object and not a Function, so this will not work here. You’ve to store the id before and use it within .editable() configuration.

    According to comment

    I think your whole code is within click() handler and you need to use

    var id = $(this).find('div:first').attr('id');
    

    to get current clicked id.

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

Sidebar

Related Questions

Anyone see potential problems with optimizing away unnecessary ajax requests like this: $('.editable').editable(function(value, settings)
Im using Jeditable inside a table, to update a value. function updateOwner(row, value, settings)
How can I use this Jeditable function to reflect changes in the text. In
In Django, settings are stored in a file, settings.py. This file is part of
this is more a conceptual question. Consider you have a php framework that runs
I'm trying to convert this piece of JavaScript which sets a callback in PHP
I'm using jEditable and instead of using ajax to save, I just want to
Using jQuery plugin jEditable. Problem I'm having is that I want whatever is editable
I am using jeditable but want to use a function to save the data
Why editable-select list plugin <select><option> value </option> doesn't work with latest jQuery? editable-select code:

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.