can't able to set height to dynamically created div element,mozilla browser
Hi,
i can't able to set height property to dynamically created div element
in firefox.
IE its working fine
see my code
var jData = $(xmlDoc);
jData.find('Comment').each(function() {
var $Comment = $(this);
var Id = $Comment.find('Id').text();
var posX = $Comment.find('PosX').text();
var posY = $Comment.find('PosY').text();
var height = $Comment.find('Height').text();
var width = $Comment.find('Width').text();
$(document).ready(function() {
var o = $.create('div',
{ 'id': Id,
'class':
'photo_note_box_inner_inner_div1',
}, [' ']);
$('#content1').append($(o));
var abc = "#" + Id;
$(abc).height(height);
$(abc).width(width);
});
});
these are not working in firefox
$(abc).height(height);
$(abc).width(width);
how can i set height,width in firefox to dynamically created div
element