• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Selecting a particular row in <table> tag used.

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for result.jpg]
This is the Jsp file view
 
Sheriff
Posts: 67581
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the text as text. I will not download images.
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have you write any code to get selection ?
 
hariharan jayaprakash
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


hope this helps.
 
hariharan jayaprakash
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks its working
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic