Hi
How to call some action if content of the div element has changed?

I'm talking about something like this:
$("my-div").observe("change", function(e) {
    alert("hello");
});

Expecting behavior:
I have this
<div id="my-div">some text</div>

now I'm changing "some text" to "some other text" and "alert("hello")"
should be fired.

Thnaks for help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to