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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:13:53+00:00 2026-05-19T04:13:53+00:00

is it possible to reset to original state after changing class and applying the

  • 0

is it possible to reset to original state after changing class and applying the jeditable plugin

say i have this example

<div class="non_edit" id="test1">test1</div>
<div class="non_edit" id="test2">test2</div>

and have this divs change class by this function

$('div.non_edit').addClass('edit').removeClass('non_edit');

and apply jeditable

$('.edit').editable('somepage.php');  

now when i want to return to its ‘non-editable’ state i have this

$('div.edit').addClass('non_edit').removeClass('edit');

but still the ‘changed’ divs are editable, what im trying to do here is to set certain divs editable and non editable
, and also if there are any suggestions on how to do this in another way is much appreciated

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-19T04:13:53+00:00Added an answer on May 19, 2026 at 4:13 am
    $('div.edit').addClass('non_edit').removeClass('edit').unbind('click.editable');
    

    This will do it (tested on jeditable site using console). All this is doing is unbinding the event so nothing fires. You must use the correct namespacing as well – my code above works on the default.

    Hope that helps!

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

Sidebar

Related Questions

Is intercontainer communication possible within Apache tomcat? For example: Say you have 2 rest
Is it possible to reset a table with even, odd rows after having picked
Is there any way to (robustly) reset any possible :after and :before CSS rules
The original use case: This is a possible use case I'm trying to solve:
Is it possible to reset a activity to its normal state when a user
Is it possible to reset the value returned by totalPages() method of reportRun class?
I know it's possible to reset the My.Settings with Reset() method. Is there anyway
Right now, I have a domain entity named StyleBundle. This StyleBundle takes a list
I have several div's that have their html modified during the life of the
Is it possible to reset status of printing somehow, or is it always necessary

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.