Hi,
i m having a doubt regarding which one is better option to use ?
$("<input id="input1"></input>").appendTo("#Form");
OR
using $('<?php echo $form->input();?>').appendTo("#Form");
Hi,
i m having a doubt regarding which one is better option to use ?
$("<input id="input1"></input>").appendTo("#Form");
OR
using $('<?php echo $form->input();?>').appendTo("#Form");
Using the framework's helpers is always a better option. So here,
$('<?php echo $form->input();?>').appendTo("#Form");
Is indeed the best solution.