.live() upgrade simple problem... i think.
Ok so I'm upgrading to the 1.9.1 and .live doesn't work anymore, this is the old piece of code that worked:
- $("#select-speaker").live("change", function(event) {
- var selected = $(this).val();
- ShowSpeakerLines(selected);
- });
So I tried changing it to .on as it says, but it only seems to work offline for me when i try it on the server it just doesn't respond. This was the code that worked offline but not online:
- $(document).on("click", "#select-speaker", function() {
- var selected = $(this).val();
- ShowSpeakerLines(selected);
- });
Has anyone got any ideas?
Thanks Jonny.