tags:

views:

49

answers:

1

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");
+5  A: 

Using the framework's helpers is always a better option. So here,

$('<?php echo $form->input();?>').appendTo("#Form");

Is indeed the best solution.

Damien MATHIEU