I'm trying to bind a click event handler to some elements that are being created dynamically. But the function already gets executed on simply loading the page. I also tried the livequery plugin and .delegate which also had that unwanted habit.
$(".pika_thumb").live("click" ,( function () {
$("#video").hide();
$(".pika_main").show();
}));
How do I prevent my function to be executed on other events than a click on the specified elements?