I have error when I tried to set input values with an Array. I got this error messages when I set the value directly.
Array to string conversion
I tried to do two methods but got same error.
First method :
<input type="hidden" id="itemDetail" name="itemDetail" value="<?=$itemDetail?>">
Second method :
<script type="text/javascript">
$('[name=itemDetail]').val(<?=$itemDetail?>);
</script>
How to set an array inside the input values ? Thank you.