• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hideing tr tag with using jquery when click on image

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<!doctype html>
<html>
<head>
<title></title>
</head>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script>

function hiderow() {

$(".sec").hide();
$("#sec1").show();
$("#sec2").hide();
}
function hiderow1() {

$(".sec").show();
$("#sec1").hide();
$("#sec2").show();
}
</script>
<body>
<div >
<table border="0">
<tr id="2">
<td ><span onclick="hiderow()" id="sec2" style="cursor:pointer;">+</span>
<span onclick="hiderow1()" id="sec1" style="cursor:pointer;display:none;">-</span>
</td>

</tr>
</table>


<table border="1">




<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfddf</td><td>dfdfdff</td><td>kfjkdfjdk</td><td>l;fkgldkld</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfdfd</td><td>3dfdfdfdfdf45</td><td>fdfdfdfdfdfd</td><td>3dfdfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfdfd</td><td>345</td><td>345</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>fdfdffdfdf</td><td>3dfdfdfdf45</td><td>3dfdfdfdfd45</td><td>3dfdfdfdfdfdfd45</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfdfdd</td><td>34dfdfdfdfdfddf5</td><td>34dfdfdfdfdf5</td><td>34dfdfdfd5</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dfdfdfv;l;k</td><td>3dfdfdfdfdfdf45</td><td>345</td><td>3dfdfdfdfdfdfdf45</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>dklkojie</td><td>3dfdfdfdfdfdfdfdff45</td><td>34dfdfdfdfdfdfd5</td><td>3dfdfdfdfdfdfdf45</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>ldklfkdlfkas</td><td>3dfdfdfdff45</td><td>34dfdfdfdfdddfdfd5</td><td>3fddfdfdf45</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>kldkfldjfkdfjsdfd</td><td>3fdfdfdddfdfd45</td><td>345</td><td>34dfdfdfdff5</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>ldfppfdf</td><td>34dfdfdfdf5</td><td>34dfdfdfdfd,lkl5</td><td>34dfdfdfdfdfdfdffdfdfd5</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>ldfppfdf</td><td>345</td><td>34lklkjnjnkjmkjk5</td><td>34dfdfdfdfdfd5</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>
<tr><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td class="sec">345</td><td>ldflfal</td><td>3lkjugujfhcafajjsdj45</td><td>34 kjijjjhuhhuhijhijih5</td><td>3dfdfdfdfd45</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>dfdfdfdf</td><td>adfdfdf</td><td>dfdfdfdf</td></tr>









</table>











</div>

</body>
</html>
 
Sheriff
Posts: 67750
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
So what's the question? Just posting a blob of unformatted and unreadable code isn't going to get you much help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic