Skip to main content

Bug Tracker

Side navigation

#7361 closed bug (worksforme)

Opened October 30, 2010 07:30PM UTC

Closed October 30, 2010 07:49PM UTC

Last modified October 31, 2010 01:45PM UTC

$elem.show() hides the elment

Reported by: anoop26667@gmail.com Owned by:
Priority: high Milestone: 1.5
Component: css Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
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>

Attachments (0)
Change History (2)

Changed October 30, 2010 07:49PM UTC by rwaldron comment:1

component: unfiledcss
priority: undecidedhigh
resolution: → worksforme
status: newclosed

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/

Changed October 31, 2010 01:45PM UTC by anoop26667@gmail.com comment:2

Please test it with jQuery 1.4.3 on jsfiddle


thanks