JQuery with html generated by PHP

JQuery with html generated by PHP

Hi

I am rather new to JQuery and would like to use it with php. I ran into problems when my html is not static, I generate php forms on the fly using my  php script and JQuery just doesn't seem to validate those forms. When put the same form in static html file JQuery works like a charm. What could be wrong? Does JQuery need a page to be static?

Right after I load my php page firebug reports that $(document).ready(function() {  is not a function and JQuery is not defined. I have loaded the necessary JQuery libraries. Help

Thanks.