Jquery dialogue box on windows xp IE 8.

Jquery dialogue box on windows xp IE 8.

I am using Jquery dialogue box on windows XP IE 8.  I am getting following error
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0

On other versions of IE and other browsers everything is working fine. For using a dialogue i have used it in a traditional way, by using a div with an id
<div id='x' style='display:none'>
    Hello
</div>
and using it like  $( "#x" ).dialog({autoOpen: false,
            modal : true  });

and calling it in a function abc(){$( "#x" ).dialog( "open" );}

But it is throwing error. If i remove div id or rename it, page error will go but pop up will not display.
Can i use dialogue without div id in some way.
Please help