[jQuery] Re: JQuery and append().

2009-04-06 Thread amuhlou
From the code you posted, it looks like you're missing the # in the btnGo selector, it should be $(#btnGo).click(function(){alert ('hi');}); On Apr 6, 8:29 am, pankajspace pankajsw@gmail.com wrote: Hello,      I have written a code in which after clicking a button a html is appending

[jQuery] Re: JQuery and append().

2009-04-06 Thread Chandan Luthra
Hi, Create a function in the script tag and put the task that you want to perform on the click of btnGo example: *script function demoFunction(){ alert(hi) } /script* now just write the following code on some click : *$('div').click(function(){ $('#someId').append(input

[jQuery] Re: JQuery and append().

2009-04-06 Thread cdaveb
In my early jQuery experiences, I found that dynamically generated HTML could not be accessed directly by events. I had to use the livequery plugin to get them to work. I'm still pretty much a jQuery newbie though, so maybe there is another way.