Jquery Live
I've got this scenario where i need to append html and every time you click more in append more of those to below.
now those html content Links which execute javascript function.
And to my surprise it does not trigger the click function.
So the Solution would be to use this $('linkclassname').live('click',function(){ //do something});
You bind it only once, The next /future Element Will be Bind the same Event , No need for recurring binding element
What is the difference between live and Bind?
as documentation on jquery
"When you bind a "live" event it will bind to all current and future elements on the page (using event delegation).
For example if you bound a live click to all "li" elements on the page
then added another li at a later time - that click event would continue
to work for the new element (this is not the case with bind which must be re-bound on all new elements)"
implies that you set it once and all the same element will be bind the same.
So i give my link a class name and set the live on document ready.
Viola.. works