I am exhausted today, not to include the funk that the BCS national championship put me in, so I must be either crazy or missing something. When I do the following the code works;
- $('#modalShade').live('click', function(event) {
- console.log('shade clicked');
- });
But when I change to on()
- $('#modalShade').on('click', function(event) {
- console.log('shade clicked');
- });
No dice!
#modalShade is a div that is added in an append()
- <div id="modalShade"></div>
ugh, I know that I must be missing something obvious. I have read the docs for on(). Can anyone tell me what I might be missing?
EDIT: I set up a fiddle, but it works there
http://jsfiddle.net/TpCHy/