pass object in html onclick code example
Example: pass object in onclick javascript
<input type='button' onclick='showTransreqForm( result.productsArray[i])' value='Go'
<input type='button' onclick='showTransreqForm( result.productsArray[i])' value='Go'