I need to pass these two variables in my HTML button.
$value['_id']
$sellerInfo[0]['City']
The HTML is:
<button id='myBtn' onclick='showproduct()'>Pending</button>
I have tried with this code:
<button id='myBtn' onclick='showproduct("<?php echo $value['_id'];?> , <?php echo $sellerInfo[0]['City']; ?> ")'>Pending</button>
I'm getting an error the second parameter is undefined.
How can I pass the two variables in showproduct()?