Jump to content

window.document.getElementById


Guest mangal

Recommended Posts

Guest mangal

i m trying to hide previous div and display next div but its not work in firefox

 

 

 

function toggle(){

var div1 = window.document.getElementById('div1')

if (div1.style.display = 'none' ) {

div1.style.display = 'block'

div2.style.display = 'none'

div3.style.display = 'none'

 

} else {

div1.style.display = 'block'

 

 

}

}

small1.jpg

 

small2.jpg

 

small3.jpg

 

 

big1.jpg

big2.jpgPalash Bose

big3.jpg

Edited by mangal
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...