Bug Tracker

Modify

Ticket #7265 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

jquery 1.4.3 obj.css('width') returns false value

Reported by: kricoune@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

Description

I am creating an object with this code line:

var mynewobj = jQuery('#myTemplate').clone();

then I am adding some attr and styles like this:

mynewobj.attr("id", options.name);
mynewobj.css("z-ndex",currentZIndex++);
mynewobj.css("width",(options.dimention.width+10)+"px");
mynewobj.css("height",(options.dimention.height+56)+"px"); 

now if I ask the width of my new object mynewobj like this:

mynewobj.css('width');

the result is "0px". when if I am using JQUERY 1.4.2 it works just fine and returns the correct width.

p.s when I check the style of this object in the DOM by using "firebug" in firefox browser it shows that it has the correct css width attribute.

Change History

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 3 years ago by snover

Duplicate of #7225.

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.