0

jquery show/hide

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

kesavkolla gravatar image kesavkolla
180 3

updated 2009-12-01 20:49:51 +0800

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>
<!-- This is zk's version of jquery -->
<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" /><br />
<dir id="noteform">
This should be hidden
</dir>
</body>
</html>

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

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

Seen: 381 times

Last updated: Dec 01 '09

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