Skip to main content

Bug Tracker

Side navigation

#553 closed bug (worksforme)

Opened December 21, 2006 08:18AM UTC

Closed December 21, 2006 12:44PM UTC

Last modified June 20, 2007 01:54AM UTC

Bug in Effects - hide ()

Reported by: bawbaw.hu@gmail.com Owned by:
Priority: major Milestone:
Component: effects Version: 1.0
Keywords: Cc:
Blocked by: Blocking:
Description

I create 3 buttons in my test codes. I find a bug. "Change" will not work after clicking "hide".

Steps to re-produce the bug:

1. Click "hide"

2. Click "show"

3. Type sometings, click "change". But it does not work.

Please refer to my codes.

<html>
<head>
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {

	$("#hide").click(
		function(){
			$("#op").hide();
		}
	)
	$("#show").click(
		function(){
			$("#op").show();
		}
	)
	$("#change").click(
		function(){
			$("#out").html($("#in").val());
		}
	)
}
)
</script>
</head>
<body>
<input type="button" id="hide" name="send" value="hide" /> 
<input type="button" id="show" name="send" value="show" /> 
<input type="button" id="change" name="change" value="change"> 
<div id="op">
<textarea id="in" rows="10" cols="100"></textarea>
<textarea id="out" rows="10" cols="100"></textarea>
</div>
</body>
</html>
Attachments (2)
  • test_hide.2.html (0.7 KB) - added by anonymous December 21, 2006 08:36AM UTC.
  • test_hide.html (0.7 KB) - added by bawbaw.hu@gmail.com December 21, 2006 08:35AM UTC.
Change History (2)

Changed December 21, 2006 12:38PM UTC by joern comment:1

description: I create 3 buttons in my test codes. I find a bug. "Change" will not work after clicking "hide". \ \ Steps to re-produce the bug:\ 1. Click "hide"\ 2. Click "show"\ 3. Type sometings, click "change". But it does not work.\ \ Please refer to my codes.\ \ <html>\ <head>\ <script src="jquery.js" type="text/javascript"></script>\ <script type="text/javascript">\ $(document).ready(function() {\ \ $("#hide").click(\ function(){\ $("#op").hide();\ }\ )\ $("#show").click(\ function(){\ $("#op").show();\ }\ )\ $("#change").click(\ function(){\ $("#out").html($("#in").val());\ }\ )\ }\ )\ </script>\ </head>\ <body>\ <input type="button" id="hide" name="send" value="hide" /> \ <input type="button" id="show" name="send" value="show" /> \ <input type="button" id="change" name="change" value="change"> \ <div id="op">\ <textarea id="in" rows="10" cols="100"></textarea>\ <textarea id="out" rows="10" cols="100"></textarea>\ </div>\ </body>\ </html>I create 3 buttons in my test codes. I find a bug. "Change" will not work after clicking "hide". \ \ Steps to re-produce the bug:\ \ 1. Click "hide"\ 2. Click "show"\ 3. Type sometings, click "change". But it does not work.\ \ Please refer to my codes.\ \ {{{\ <html>\ <head>\ <script src="jquery.js" type="text/javascript"></script>\ <script type="text/javascript">\ $(document).ready(function() {\ \ $("#hide").click(\ function(){\ $("#op").hide();\ }\ )\ $("#show").click(\ function(){\ $("#op").show();\ }\ )\ $("#change").click(\ function(){\ $("#out").html($("#in").val());\ }\ )\ }\ )\ </script>\ </head>\ <body>\ <input type="button" id="hide" name="send" value="hide" /> \ <input type="button" id="show" name="send" value="show" /> \ <input type="button" id="change" name="change" value="change"> \ <div id="op">\ <textarea id="in" rows="10" cols="100"></textarea>\ <textarea id="out" rows="10" cols="100"></textarea>\ </div>\ </body>\ </html>\ }}}

Changed December 21, 2006 12:44PM UTC by joern comment:2

resolution: → worksforme
status: newclosed

That is an interesting issue. For me it occurs in FF, but not IE. It looks very much like a bug in FF. A very easy workaround is to use val both times, that is, to both get and set the values. This is also more consistent with other form fields.