File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Selecting a particular row in <table> tag used.

 
hariharan jayaprakash
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to select a particular row, when i click on check box with help of java script function?..

result.jpg
This is the Jsp file view
[Thumbnail for result.jpg]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the text as text. I will not download images.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you write any code to get selection ?
 
hariharan jayaprakash
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, i didnt write any code to select a row... i am not familier with html and java script..

 
hariharan jayaprakash
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


hope this helps.
 
hariharan jayaprakash
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks its working
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic