jquery live method doubt
-
hi all,
$("div.newdiv").bind("click", newdivclick);
i know this will bind the click event of all div having cssclass 'newdiv' to the function 'newdivclick'. My doubt is can i do a similar thing with .live method?$("div.newdiv").live("click", newdivclick);
this din work for me. i want to bind all divs with a specific class to a function on click or any other event. and i will be creating dynamic divs too which should also be binded to that function. thats y looking for live method.How can i do it. can anyone help me. -
hi all,
$("div.newdiv").bind("click", newdivclick);
i know this will bind the click event of all div having cssclass 'newdiv' to the function 'newdivclick'. My doubt is can i do a similar thing with .live method?$("div.newdiv").live("click", newdivclick);
this din work for me. i want to bind all divs with a specific class to a function on click or any other event. and i will be creating dynamic divs too which should also be binded to that function. thats y looking for live method.How can i do it. can anyone help me. -
hi all,
$("div.newdiv").bind("click", newdivclick);
i know this will bind the click event of all div having cssclass 'newdiv' to the function 'newdivclick'. My doubt is can i do a similar thing with .live method?$("div.newdiv").live("click", newdivclick);
this din work for me. i want to bind all divs with a specific class to a function on click or any other event. and i will be creating dynamic divs too which should also be binded to that function. thats y looking for live method.How can i do it. can anyone help me.Trying DESPERATELY to believe this has something to do with C#.....
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Trying DESPERATELY to believe this has something to do with C#.....
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
No matter how hard you close your eyes and wish upon a star, javascript has nothing whatsoever to do with C#.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
No matter how hard you close your eyes and wish upon a star, javascript has nothing whatsoever to do with C#.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
*sigh* I know. C# questions in the ASP.NET forum I can kind of get, some people have no idea what ASP.NET is, and think it's just .NET. But, javascript in the C# forum ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
*sigh* I know. C# questions in the ASP.NET forum I can kind of get, some people have no idea what ASP.NET is, and think it's just .NET. But, javascript in the C# forum ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Christian Graus wrote:
But, javascript in the C# forum ?
Well, they've both got braces. :rolleyes:
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
hi all,
$("div.newdiv").bind("click", newdivclick);
i know this will bind the click event of all div having cssclass 'newdiv' to the function 'newdivclick'. My doubt is can i do a similar thing with .live method?$("div.newdiv").live("click", newdivclick);
this din work for me. i want to bind all divs with a specific class to a function on click or any other event. and i will be creating dynamic divs too which should also be binded to that function. thats y looking for live method.How can i do it. can anyone help me.:confused: ...and this has what to do with C# and the .NET Framework???
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...