Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#553 closed bug (worksforme)

Bug in Effects - hide ()

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

Description (last modified by joern)

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.html (718 bytes) - added by bawbaw.hu@… 14 years ago.
test_hide.2.html (718 bytes) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by bawbaw.hu@…

Attachment: test_hide.html added

Changed 14 years ago by anonymous

Attachment: test_hide.2.html added

comment:1 Changed 14 years ago by joern

Description: modified (diff)

comment:2 Changed 14 years ago by joern

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.

Note: See TracTickets for help on using tickets.