As per last Rails gem update, my jQuery v was updated to 1.9 , which raises errors regarding my .live() bindings …
$('#tags.tab-pane.active #tag-list li span.myTag').live "click", (e) ->
is now wrong ..
I tried
$("#tags.tab-pane.active #tag-list li").on "click", "span.myTag", (e) ->
but it’s wrong too… what should I use ? “on” or “delegate”
if you are appending an element it is not in the dom originally but once it’s been appended the below is applicable