Re: Problem in javascript
You are setting the div to invisible and setting it's display to none for both condition. And just setting the display style property will work:
HTML Code:
function closeDivsms(item)
{
alert(item);
if(document.getElementById ('divSendSMS').style.display=='block')
{
document.getElementById ('divSendSMS').style .display ="none";
}
else
{
alert('9');
document.getElementById ('divSendSMS').style .display ="block";
}
}
Hope it helps you!!!
Re: Problem in javascript
Quote:
Originally Posted by Harsh Gupta
You are setting the div to invisible and setting it's display to none for both condition. And just setting the display style property will work:
HTML Code:
function closeDivsms(item)
{
alert(item);
if(document.getElementById ('divSendSMS').style.display=='block')
{
document.getElementById ('divSendSMS').style .display ="none";
}
else
{
alert('9');
document.getElementById ('divSendSMS').style .display ="block";
}
}
Hope it helps you!!!
ya, I got it.Thanks Harsh.
Re: Problem in javascript
hello frnd,
check out following links
http://www.quirksmode.org/js/blockinvi.html
if your problem is solved then mark the thread as RESOLVED
regards,
koolprasad2003:)