This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting two parameters in javascript

 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:forEach var="trans" items="${in}">
<tr>
<td><input type="checkbox" name="CheckBox" id="CheckBox" value="${tran}" onClick="selectCheckBox()"></td>
<td><fmt:formatDate value="${trs.date}" type="date" pattern="dd/MM/yyyy" /></td>
<td><cut value="${tran.ref}"/></td>
<td><cut value="${trans.am}" /></td>
<td><cut value="${trans.amountOut}" /></td>
</tr>



function selectCheckBox() {

}
}
how will i get to print "${tran.ref} value in the select checkbox?? i m not gettting this/? the problem is am already printing the value of tran in the selectCheckBox(), and i need both the values in the selectCheckBox() method. Anyways i m getting to print the value of "${tran}" how to get the ${tran.ref}"??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please fix your code and use code tags so it is readable.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic