I know I've read about this somewhere and I should have bookmarked it,
but what is the process for having a function running in the
background so that if at any point something should change on the page
(i.e. a <div> is now shown) that the function acts on it (such as
adding a class to that div).

For example, say you have a function where one clicks on some text and
now they have the ability to edit the text inline (and the subsequent
changes are made via AJAX) because it changes the text they've clicked
to text within a textarea.  Now let's say this particular text is a
date in this format:

MM/DD/YYYY

This textarea has the class "date".  I want a function to run so that
at anytime a textarea with class "date" is shown that it becomes a
datepicker (see http://docs.jquery.com/UI/Datepicker ).

Any clues on how this would be accomplished?

Reply via email to