Revision history [back]

click to hide/show revision 1
initial version

asked 2009-12-01 20:49:33 +0800

kesavkolla gravatar image kesavkolla

jquery show/hide

Hi

ZK enhances jQuery and modifies the show() and hide() methods. I have several plugins that uses show() hide() functions to alter the display characteristics. What is the alternate way of using show() hide() in ZK's version of jQuery?

I have a fixed position div which is hidden initially. When I call $("#hiddenDiv").show() it doesn't show the div. The regular jquery works but the zk's version doesn't work.

Here is my code:

<html> <head> <style type="text/css"> #noteform { display: none; position: absolute; width: 250px; top: 100px; left: 200px; } </style>

<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" language="JavaScript"> jQuery(function($) { $("#btnToggle").click(function() { $("#noteform").show(); }); }); </script>

</head> <body> <input type="button" id="btnToggle" value="Toggle"/>

This should be hidden </body> </html>

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More