pass object from html to javascript 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'