• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

getting two parameters in javascript

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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><c:out value="${tran.ref}"/></td>
<td><c:out value="${trans.am}" /></td>
<td><c:out 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}"??
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please fix your code and use code tags so it is readable.

Eric
 
Everybody's invited. Except this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic