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

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: 67699
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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic