I was using the $.click() method for triggering some events. But then I needed to set some events for some HTML elements before the elements were declared. Let\
$.click()
Use jQuery.live method to attach an event handler for all elements which match the current selector, now and in the future