Re: Trouble Modifying dsiplay style
"Efran Cobisi, cobisi.com" <[email protected]> Tue, 26 Feb 2008 19:36:18 +0100
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Organization | cobisi.com |
| Message-ID | <[email protected]> |
Hi Brady,
You should set the display to "block", not "inline".
That is:
document.getElementById('divSR').style.display = 'block';
HTH
--
Efran Cobisi
http://www.cobisi.com
Brady Kelly wrote:
> I'm trying to get a DIV to display at will, as a sort of dialog, but I'm
> stuck on setting the display as follows. Please could someone suggest why
> this isn't working:
>
>
>
>
>
> function showSearchAndReplace()
>
> {
>
> var dSr = document.getElementById("divSR");
>
> dSr.style.display="inline";
>
> debugger;
>
> return true;
>
> }
>
>
>
>
>
> My DIV is marked up as:
>
>
>
> div id="divSR" style="display: none;"
>
>
> ===================================
> This list is hosted by DevelopMentorĀ® http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
>
>
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com