Side navigation
#10695 closed bug (duplicate)
Opened November 06, 2011 03:23PM UTC
Closed November 06, 2011 04:12PM UTC
Last modified November 06, 2011 04:12PM UTC
Inconsistent behaviour of show()
Reported by: | silesianlordt | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | None |
Component: | effects | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Showing element( for ex. ''span'' with ''display:none'') while it is in variable is inconsistent. After adding stored element into DOM it is:
-visible in FF
-not visible in IE, Chrome
<!DOCTYPE HTML > <html> <head> <script type="text/javascript" src="jquery-1.7.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#do').click(function(){ var cloo = $('<span>def</span>'); var place = $('#place'); cloo.show(); place.append(cloo); }); }); </script> <style type="text/css"> span {display:none;} </style> </head> <body> <div id="do">DO</div> <div id="place"></div> </body> </html>