i want to set a data to a input form
but she not working and when i open console i found this error
<?php print_r($output);
foreach($output as $key=>$out) {
$produitname = $out['produitname'];
$produitnid = $out['produitnid'];
$type = $out['type'];
$imageUrl = $out['image'];
} ?>
<?php print render(node_view(node_load(131), 'full', NULL)); ?>
<script type="text/javascript">
Drupal.behaviors.devenirClientform = {
attach: function (context, settings) {
jQuery(document).ready(function($) {
$('.webform-component--produits-choisie>input').val('<?php echo $produitnid ?>');
$('.webform-component--type-de-client>input').val('<?php echo $type ?>');
$('.webform-component--contrat>input').val('<?php echo $imageUrl ?>');
});
}
};
//
</script>