I've got the following jQuery command to bind the click event when the specific element is dynamically created.
$(".bill-remove-icon").live("click", function(){
$(this).parent().hide('slide',function(){$(this).parent().remove()});
});
But this code gives a firebug error :
TypeError: $(...).live is not a function
What am I doing wrong here? if this code is wrong, pls suggest a better method to bind events to dynamically created elements.