[LON-CAPA-users] Can't hide <m>

Gerd Kortemeyer lon-capa-users@mail.lon-capa.org
Fri, 10 Apr 2009 06:56:24 -0400


Hi,

Could you please give us more background on this? In which context are  
you working, and what are you trying to achieve?

- Gerd.

On Apr 9, 2009, at 8:36 PM, Sean Wolf wrote:

> First look at the code below:
>
> function showAnswer(part)
> {
> document.getElementById(part).style.visibility = "visible";
> }
>
> <input value="Show" type="button"  
> onClick="javascript:showAnswer(1)"></input>
>
> <p style="visibility: hidden;" id="1">- ( $G Nm^2 * $m2 kg * $mencl  
> kg ) / ( $rgs m ^ 2 ) = $Fmencl2 N</p>
>
> So when the "Show" button is clicked, I see the text inside of the  
> <p> with id="1".  However, if I put a <m> tag inside of the <p>,  
> everything is visible right way.  I'm guessing this is because of  
> the LaTeX rendering.  Is this desired functionality?  If so, any  
> suggestions to being able to hide an <m> tag until a button click?
>
> Thanks,
> Sean
>
> -- 
> Sean Wolf
> 2400 Ford St.
> Golden, CO 80401
> (720) 897-7763
>