"How should I use it right? " there doesn't seem to be anything wrong with your syntax (with the ".live" part anyways, your usage of ".val()" has no impact on your issue).... got more code to show? are you using at least the 1.3.2 version of the library?
also take into account that id's on the page should be unique, your code is assuming/looking-for multiple objects with id "family"... that isn't 'good' practice... it may work yes, but as said, id's should be unique on the page On Jan 20, 7:12 am, Mircea <i...@amsterdamsat.com> wrote: > Hi, > I want to add a live event on a function. > My function is: > > $("#family").click(function(){ > $($("#tag").val()).css("font-family", $("#family").val()); > > }); > > I've tryed to add it like this: > > $("#family").live("click", function(){ > $($("#tag").val()).css("font-family", $("#family").val()); > > }); > > but I get a "$("#family").live is not a function" FireBug error. How > should I use it right? > > Thank you.