Re: [jQuery] Div change

2009-11-09 Thread Michel Belleville
http://docs.jquery.com/Events/change#fn says : "The change event fires when a control loses the input focus and its value has been modified since gaining focus." Sadly a div is not a control and I don't know of a method to do precisely what you're trying to do the way you want to do it. Though if

Re: [jQuery] Div change

2009-11-09 Thread Charlie Griefer
On Mon, Nov 9, 2009 at 3:26 PM, factoringcompare.com < firstfacto...@googlemail.com> wrote: > When changes with a AJAX response I would > like to fire a alert. What am I doing wrong? > > $(document).ready(function() { > > $("#MyResult").change(function (){ >alert('hi'); > }); > > }); > I

[jQuery] Div change

2009-11-09 Thread factoringcompare.com
Hi, When changes with a AJAX response I would like to fire a alert. What am I doing wrong? $(document).ready(function() { $("#MyResult").change(function (){ alert('hi'); }); });