Geeks Talk

Prepare for your Next Interview




div tag problem...

This is a discussion on div tag problem... within the JavaScript forums, part of the Web Development category; In my web page i am using one contact form. In that form i want to hide some rows initially. I am using the div tag. But the particular rows ...


Go Back   Geeks Talk > Web Development > JavaScript

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-10-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 69 Times in 58 Posts
psuresh1982 will become famous soon enough
div tag problem...

In my web page i am using one contact form. In that form i want to hide some rows initially. I am using the div tag. But the particular rows still displayed. I am using the following tag. div id="hide" style="display:none".
I don't know why this is not working ? can anyone knew the answer ?

----------------
suresh

Last edited by psuresh1982 : 01-11-2007 at 06:32 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Nov 2006
Location: Bangalore
Posts: 26
Thanks: 2
Thanked 6 Times in 4 Posts
TigerElango is on a distinguished road
Re: div tag problem...

i had the same situation, ie to hide the details by clicking on the image......for that i have used the table which has the details.......

function showHide(id)
{
obj=document.getElementById(id);
obj.style.display="none";
}

is the javascript code.


the details......


and it worked for fine for me......so try this......

hope this would be useful for u....
Reply With Quote
  #3 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Nov 2006
Location: Bangalore
Posts: 26
Thanks: 2
Thanked 6 Times in 4 Posts
TigerElango is on a distinguished road
Re: div tag problem...

sorry this is the html part code......
img src="" onclick="showHide('tab1')" --image tag

table id="tab1"
the details......
/table
Reply With Quote
  #4 (permalink)  
Old 02-03-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 69 Times in 58 Posts
psuresh1982 will become famous soon enough
Re: div tag problem...

hi elango,

Thanks for your reply. I know if we using the table its working fine. Here i have 10 rows. i want to hide these rows according to the selection of select box. That's why i want to hide particularly the rows. Because if i use 10 tables for 10 rows then it looking very poor coding. That's why i need a help.

Anyway thanks for your information...Expect a good posts from you.

----------------
suresh
Reply With Quote
Reply

  Geeks Talk > Web Development > JavaScript


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
money problem.... psuresh1982 Brainteasers 3 01-09-2007 05:45 AM
Problem for my post.... psuresh1982 Suggestions & Feedback 1 12-14-2006 03:32 AM
One more Mathematical problem..? psuresh1982 Brainteasers 2 11-17-2006 06:13 AM
Postman problem. jamesravid Brainteasers 4 11-13-2006 12:04 AM
Problem in Decryption ramamaru Windows 1 05-17-2006 08:55 PM


All times are GMT -4. The time now is 06:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved