el: $('#myholder'),
Browsers read from top to bottom. The browser is executing this line before it ever finds an element with the id of myholder
, so el
is an empty jQuery object.
Instead, move your script tag to the bottom of the HTML (so the browser has found myholder
before you try to grab it) or wrap it all in a $(document).ready(
call.