File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes getting two parameters in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "getting two parameters in javascript" Watch "getting two parameters in javascript" New topic

getting two parameters in javascript

sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
<c:forEach var="trans" items="${in}">
<td><input type="checkbox" name="CheckBox" id="CheckBox" value="${tran}" onClick="selectCheckBox()"></td>
<td><fmt:formatDate value="${}" type="date" pattern="dd/MM/yyyy" /></td>
<td><cut value="${tran.ref}"/></td>
<td><cut value="${}" /></td>
<td><cut value="${trans.amountOut}" /></td>

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

Joined: Nov 08, 2001
Posts: 15376
Please fix your code and use code tags so it is readable.

I agree. Here's the link:
subject: getting two parameters in javascript
Similar Threads
Having some multidimensional array problem in JSP
JSF TreeMap Iteration Problem Using JSTL In XHTML
need help :: multiple rows update without primary key
How to get Names of selected checkboxes?