helloworld001 Posted March 16, 2015 Share Posted March 16, 2015 This is jquery dialog box. http://jqueryui.com/dialog/#modal-confirmation I am wondering where would be the best place to add the dialog box div, in below html page? <html> <head> </head> <body> </body> </html> Link to comment https://forums.phpfreaks.com/topic/295270-simple-question-where-is-the-best-place-to-put-jquery-dialog-box-in-the-html-body/ Share on other sites More sharing options...
kicken Posted March 16, 2015 Share Posted March 16, 2015 It doesn't really matter. jQuery UI will move it to the end of the body (as in before </body>)* once the dialog is initialized. Put it wherever is most convenient for you. * Technically it appends to to whatever the appendTo option is set to. By default that's the body element. Link to comment https://forums.phpfreaks.com/topic/295270-simple-question-where-is-the-best-place-to-put-jquery-dialog-box-in-the-html-body/#findComment-1508180 Share on other sites More sharing options...
helloworld001 Posted March 16, 2015 Author Share Posted March 16, 2015 It doesn't really matter. jQuery UI will move it to the end of the body (as in before </body>)* once the dialog is initialized. Put it wherever is most convenient for you. * Technically it appends to to whatever the appendTo option is set to. By default that's the body element. Got it. I suppose it's best to put it in the footer where all my js scripts are. Link to comment https://forums.phpfreaks.com/topic/295270-simple-question-where-is-the-best-place-to-put-jquery-dialog-box-in-the-html-body/#findComment-1508237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.