I am hoping you guys can help me with this. I have the following code
</textarea> <br />Word Count: <input type="text" name="c" value="311" size="5" onkeyup="cnt(document.script.w,this)" /> </form> <script type="text/javascript"> var myNumValue = document.getElementById('c').value; var myNum = parseInt(myNumValue); var upperLimit=200; var lowerLimit=10; if(upperLimit == lowerLimit) { document.getElementById('div1').style.visibility='visible'; } </script> <div id="div1" style="visibility: hidden;"> Super cool hidden div! </div> For some reason, I cannot get the div to show. I have tried setting the upper and lower the same and using == in if, anything inside of the if displays (for example if a do a document.write it will show up) but for some reason the div will not show.
What am I missing?
Thanks!
Kevin
</body>tag, to avoid this kind of thing.