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

  • Home
  • SEARCH
  • 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 7598629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:27:22+00:00 2026-05-30T22:27:22+00:00

jsfiddle example link Seems like jQuery $.hide() and $.show() do not modify the DOM

  • 0

jsfiddle example link

Seems like jQuery $.hide() and $.show() do not modify the DOM to hide/show the element, and hence do not fire DOMSubtreeModified event. How can I capture those kind of events on any element on the DOM?

UPDATE:
The code doesn’t work on Chrome16 Ubuntu. Originally, I need to target QT browser, which is based on Webkit.

  • 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-30T22:27:24+00:00Added an answer on May 30, 2026 at 10:27 pm

    you are correct, DOMSubtreeModified is purely for modifications so you have a few choices:

    1) use DOMAttrModified which has just as bad if not worse support than DOMSubtreeModified

    2) override the .hide() and .show() methods in jQuery so you can capture any calls to them and respond:

    var oldShow = $.fn.show;
    $.fn.show = function(args) {
        alert('showing!');
        oldShow.apply(this, arguments);
    };
    // do the same for .hide()
    

    3) run some kind of “monitor” in a loop (eg. setInterval()), looking at the visible children counts or something to that affect

    4) re-organize the way you are thinking about the problem…

    hope this helps -ck

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

Sidebar

Related Questions

Based in this example http://jsfiddle.net/Nb3uW/30/ how can make it to show each link the
I have a script working to show hide the next() tbody element when another
Here an example http://jsfiddle.net/6GdW6/ $(.thumbnail).live(click, function() { $(.fullimage).hide(); var i = $(<img />).attr(src, this.href).load(function()
The link example is here: http://jsfiddle.net/fxr5p/ How to make if value is empty, onload
(see jsfiddle example) When the .link_to_rule_them_all is clicked i would like to copy all
I am using jquery addClass code to show/hide elements when rolling over a div.
In the following link: http://jsfiddle.net/gCvbT/ , if you click on General and then click
I'm trying to dynamically add a css stylesheet rule using javascript, something like example
I have a visual list of items like this: http://jsfiddle.net/viatropos/XCe3T/1/ In the real app,
I would like to know if it's possible to keep another element open upon

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.