JQuery live function doesn't work
- by Sayem Ahmed
I have some text boxes, all of which have the same class "addExamNumberBoxStyle". Now I want to bind a "blur" handler to each one of these. When I use direct "blur" event like below -
$('.addExamNumberBoxStyle').blur(function()
{
alert("Hello World");
});
it works perfectly. But when I use "live" function like below -
$('.addExamNumberBoxStyle').live('blur', function()
{
alert("Hello World");
});
it does not work.
Why?