Found the problem. Had to take out the .change();
On Jan 28, 11:39 am, cnxmax <[EMAIL PROTECTED]> wrote: > I'm trying something pretty basic inJQuery(I think). > > I want to run a function that will make it so that every Input on the > page will run a function (in this case, alert) whenever the > "change"eventhappens for that element. > > It does work, but for some reason the "test" alert alsofiresright > when I first run sasBindFormEvents(). Why is this? I only want the > "test" alert when something is typed and then the focus is removed > from the input. > > CODE: > ================================================ > > function sasBindFormEvents() { > $('input').change(function () { > alert('test'); > }) > .change(); > > } > > ================================================