jQuery UI - Modal Dialog problems

jQuery UI - Modal Dialog problems


Can some one please help me in solving this problem

I created a modal dialog box with

        bgiframe: true,
        height: 450,
        width: 375,
        modal: true,                   

which will open up when a button "enter details" is clicked with some input text fields to enter and has two buttons "create" and "cancel"

so when the user enters the details and click on cancel or create it is working fine for the first time but when the user clicks on the "enter details" second time it opens the dialog but it is not allowing me to enter any values into the text fields.

If i refresh the page then it is allowing me to enter the values  or if i remove the modal:true option it is working fine

Please help me in this issue.