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)
Change History (2)
Changed December 21, 2006 12:38PM UTC by 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 comment:2
| resolution: | → worksforme |
|---|---|
| status: | new → closed |
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.