File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "getting two parameters in javascript" Watch "getting two parameters in javascript" New topic
Author

getting two parameters in javascript

sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
<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

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting two parameters in javascript