Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:29 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  delete a row
PostPosted: July 7th, 2009, 7:19 pm 
User avatar

Posts: 52
Hi, i have a table with 3 rows. If the user clik on one of those the row willbe hidden. For some reason it seems like it is not deleting the row, it is only deleting the content, i noticed because i measured a 2 rows table against my 3-1 table and this is bigger
<table>
<tr><td onclick="this.style.display='none';">a</td></tr>
<tr><td onclick="this.style.display='none';">b</td></tr>
<tr><td onclick="this.style.display='none';">c</td></tr>
</table>

Thanks in advanced.


Top
 Profile  
 
  Re: delete a row
PostPosted: July 7th, 2009, 8:04 pm 
User avatar

Posts: 112
it looks fine for me on firefox.


Top
 Profile  
 
  Re: delete a row
PostPosted: July 7th, 2009, 8:20 pm 
User avatar

Posts: 52
Im using ie. Anyone?


Top
 Profile  
 
  Re: delete a row
PostPosted: July 7th, 2009, 8:46 pm 
User avatar

Posts: 137
add the code to the row and not to the cell
<tr onclick="this.style.display='none';"><td>a</td></tr>
<tr onclick="this.style.display='none';"><td>b</td></tr>
<tr onclick="this.style.display='none';"><td>c</td></tr>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron