Watch Our YouTube Channel
It is currently Thu Dec 14, 2017 8:44 pm
 

All times are UTC



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue May 06, 2014 12:04 pm 
Offline

Joined: Thu Sep 12, 2013 8:31 am
Posts: 701
The below javascript code is for displaying answers

Code:
<script language="JavaScript">
function ShowHide(divId)
{
if(document.getElementById(divId).style.display == 'none')
{
document.getElementById(divId).style.display='block';
}
else
{
document.getElementById(divId).style.display = 'none';
}
}
</script>


Code:
<script type="text/javascript">

function toggle(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}

</script>


Which is best to use ?

_________________
Jeba Christy.C
Get attractive facebook cover images | Learn Basics of Software Testing | Read Latest News


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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