heemaniroberts
heemaniroberts

Reputation: 57

JQuery Dialog IE issue

JSFiddle

Please check above JSFiddle link for running code.

I am having issue in JQuery Dialog in IE.

My guess is the issue is because of multiple forms or divs. I have my code as per below:

<div>
     <form>
           <table> ..... </table>

           <div id='dialog-form'>
             <form> </form>
           </div>

            <div>
                <table> .... </table>
            </div>
      </form>
</div>

The JSFiddle code works fine in Firefox and Chrome. But it shows error in IE

Message: cannot call methods on dialog prior to initialization; attempted to call method 'open'

Any help appreciated. Thank you.

Upvotes: 0

Views: 394

Answers (1)

Spencer Ruport
Spencer Ruport

Reputation: 35117

Why do you have nested forms? This isn't legal HTML and doesn't even make sense. Figure out how to remove the nested form and your code will work.

Why not try the following?

<div>
     <form>
           <table> ..... </table>
            <div>
                <table> .... </table>
            </div>
      </form>
</div>
<div id='dialog-form'>
    <form> </form>
</div>

Upvotes: 1

Related Questions