Bug Tracker

Modify

Ticket #7361 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

$elem.show() hides the elment

Reported by: anoop26667@… Owned by:
Priority: high Milestone: 1.5
Component: css Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

Description

I tried this code to show or hide the element but it does not work in expected way(result is diffrent with jQuery 1.4.2).

code <style> #test{ display:"none";} </style>

<div id="test">Dispaly....</div>

<script>

$("#test").css({display:"block"});

$("#test").show(); </script>

Change History

comment:1 Changed 3 years ago by rwaldron

  • Priority changed from undecided to high
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to css

First, Your example is invalid.

#test{ display:"none";}

Should be:

#test{ display:none;}

Second, after correcting it, I was able to reproduce the issue.

Lastly, I tested this issue with the latest jQuery development version and the issue has been resolved.

 http://jsfiddle.net/rwaldron/tcY57/3/

comment:2 Changed 3 years ago by anoop26667@…

Please test it with jQuery 1.4.3 on jsfiddle

-- thanks

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.