Hi Brian, thanks for your answer. The matter here is that i can
generate the elements dinamically but i´m not able to generate their
names dinamically, all the new input fields generated has the same
name and same ID... so, i want to to concatenate in the name of the
input field a variable number generated with jquery. Appending that
php code inside a div isn´t a problem, i think it is more a sintax
problem...
this is what a i´m trying to do:
this code works fine:
$("#newFormField").append('<?php echo $form->input('SNMPname',array
('label'=>'Name'));?>');
suppose that ID is my global jquery variable, so, and of course this
throw me an error:
$("#newFormField").append('<?php echo $form->input('SNMPname'.ID,array
('label'=>'Name'));?>');
so, how can i add this ID to the name of the new input field. before
the php code is executed?
Sorry for my english :P
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---