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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:52:41+00:00 2026-05-15T11:52:41+00:00

I have been playing around with jeditable for 2 days now, and it’s great!

  • 0

I have been playing around with jeditable for 2 days now, and it’s great!

But I got a little problem, I have a link which should be editable, but whenever the field become editable, I can’t edit that field, when I click, it jumps right to that link.

Any solution?

Here is my code

<a href="$homeurl/$hashkey" class="editsubject" id="$hashkey">$subject</a><span class="edittrigger" style="cursor:pointer;background:#EEEEEE;">edit</span>


$(document).ready(function() {
             $('.editsubject').editable('editsubject.php', {  
                    event : 'editclick',
                    cancel : 'Cancel',
                    submit : 'OK',
                    indicator : 'Wait...',
                    id : 'hk',
                    name : 'ns',
                    css : 'inherit'
             });
            $('.edittrigger').bind('click', function() {
                $(this).prev().trigger('editclick');
            });
         });

Thanks

  • 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-15T11:52:42+00:00Added an answer on May 15, 2026 at 11:52 am

    jEditable problem, here’s a workaround

    I would use a hidden span and then have it replace the text of the link on submit, and when you click on the trigger, make the link invisible and show the hidden span

    <script type='text/javascript'>
    $(document).ready(function() {
        $('.proxyedit').editable('editsubject.php', {  
            event : 'editclick',
            cancel : 'Cancel',
            submit : 'OK',
            indicator : 'Wait...',
            id : 'hk',
            name : 'ns',
            css : 'inherit',
            callback : function(value, settings) {
                $(this).css({'display':'none'});
                $('.editsubject').text($(this).text()).css({'display':'inline'});
            }
    
        });
        $('.edittrigger').bind('click', function() {
            $(this).prev().trigger('editclick');
            $('.proxyedit').css({'display':'inline'});
            $('.editsubject').css({'display':'none'});
        });
    });
    </script>
    

    in the body

    <a href="$homeurl/$hashkey" class="editsubject" id="$hashkey">$subject</a><span style="display:none;" class="proxyedit">$subject</span><span class="edittrigger" style="cursor:pointer;background:#EEEEEE;">edit</span>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing around with Umbraco 5 for some days now. I have
I have been playing around with the postgresql.conf file for a couple days now.
I have been playing around with GTK since a couple of days now,while going
I have been playing around with silverlight for a couple of days now and
I have been playing around with NSURLConnection. Now I'm trying to grab some data
I have been playing around in PHP with it and got something to work,
I have been playing around with Scala parser combinators for some time now, and
I have been playing around with Visual Studio 2010 over the past few days
I have been playing around with jQuery for a bit now, and am really
I have been playing around with Dynamic Data but I find the filtering and

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.