Tony <
tony.jo...@inport.com> wrote:
> This code works as it should but there is one thing that
> I don't fully understand.
>
> In the html markup at the end I have this div
> <div id="dlgInsertLots" title="Insert Lots" style="width:500px;
> display:none">
> ...
> which is not displayed because we have said display:none
>
> Now to my question when I click on button with id= InsertLots this function
> Click_InsertLots is called.
> function Click_InsertLots()
> {
> //Create and display dialog dlgInsertLots
> $("#dlgInsertLots").dialog({
> width:700
> });
> }
>
> but this div with id=dlgInsertLots is displayed which is the behaviour that
> I want.
> What I want to know is why is it displayed now but not when the html page
> was displayed the first time.
> I don't want to change anything because it works perfect but I don't
> understand how it can work as it does.
with the style "width:700". That overwrites the complete inline style, and