First and foremost, I know I should use the following code to attach to volatile elements
$("#volatiles_container").on("click", ".volatile", function() { ... });
I know that.
But it doesn't work, see this demo, the existing works, the created doesn't, why?
http://jsfiddle.net/LUsMb/607/
see test1
class and its' event function.
(it's not my page, I found a jsfiddle select2 example on google and added my problem to it)
sorry for the slightly overcomplicated example, just look for test1
, it's in the html once and twice in the javascript.
enter 'khglkgliy' in the search
EDIT: this is a simpler example - enter something that's not in the list - http://jsfiddle.net/LUsMb/614/