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 Selecting a particular row in <table> tag used. 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 "Selecting a particular row in <table> tag used." Watch "Selecting a particular row in <table> tag used." New topic
Author

Selecting a particular row in <table> tag used.

hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 63
I have to select a particular row, when i click on check box with help of java script function?..




[Thumbnail for result.jpg]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61001
    
  65

Please post the text as text. I will not download images.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

have you write any code to get selection ?


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 63
no, i didnt write any code to select a row... i am not familier with html and java script..

hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 63
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="tableBorder">
<%for(int i=0;i<productDetails.size();i++)
{ String pid=((productVO)productDetails.get(i)).getPid();%>
<tr>
<td><input type="checkbox" value="<%out.println(((productVO)productDetails.get(i)).getPname());%>" name="details"></td>
<td width="45%"><a href="#" onclick="javascript:productDetails('<%=pid%>')" title="Click here to view Product Details"><u><font color="blue"><%out.println(((productVO)productDetails.get(i)).getPid());%></font></u></a></td>
<td width="45%"><%out.println(((productVO)productDetails.get(i)).getPname());%></td>
<td width="35%"><%out.println(((productVO)productDetails.get(i)).getPrice());%></td>
<td width="35%"><%out.println(((productVO)productDetails.get(i)).getStocks());%></td>
</tr>
<%}%>
</table>




i written above logic to display the jsp.. In tat i want to achieve some other operation, when i click on the check box for a particular row..
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321



hope this helps.
hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 63
Thanks its working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selecting a particular row in <table> tag used.