[jQuery] Re: Why doesn't code execute when Drop Down is changed or Button clicked.

2008-11-24 Thread ricardobeat
Also you need to add the handlers after DOM has loaded, or run the script at the end of the document body: $(document).ready(function(){ $('#lstRace').change(function(){ alert('yay'); }); // everything that deals with elements in here }); Sounds like you're starting in

[jQuery] Re: Why doesn't code execute when Drop Down is changed or Button clicked.

2008-11-24 Thread Liam Potter
try $("#clickMe").click(function () { alert('four'); }); bkbonner wrote: I've been trying to figure out why when I click the button nothing happens...Can someone shed me some light on this example? function init(){ alert('one');