Re: [fw-general] Ajax and ZF - How to clear Ajax responded data when click the button again

2009-10-31 Thread scs
This is a javascript & jquery question more than a ZF question. You should use html instead of append function: $("#ai92").html(""+response.ai92+""); $("#ai80").html(response.ai80); $("#diesel").html(response.diesel); scs On Sat, Oct 31, 2009 at 10:08 AM, Enkhbilguun

[fw-general] Ajax and ZF - How to clear Ajax responded data when click the button again

2009-10-31 Thread Enkhbilguun Erdenetsogt
Hello, I'm trying Zend Framework with Ajax. Currently, I can get data from DB and print on the browser, but I have got a new problem. I have a 'Get Data' html button, and when I click that button ajax gets some data from my database through Zend Controller. The problem is when I click the 'Get