---
title: "Uncaught TypeError: $(...).dialog is not a function"  
description: "Uncaught TypeError: $(...).dialog is not a function"  
author: "Sachin Singh"  
published: 2016-04-01  
updated: 2016-04-16  
canonical: https://www.mindstick.com/forum/34093/uncaught-typeerror-dialog-is-not-a-function  
category: "jquery"  
tags: ["c#", "asp.net", "jquery", "asp.net mvc", "entity framework", "jquery ui", "razor"]  
reading_time: 1 minute  

---

# Uncaught TypeError: $(...).dialog is not a function

Hi Everyone,\
\
I have created a one [dialog box](https://www.mindstick.com/forum/34699/create-alert-dialog-box-in-android) in jQuery and when i run the [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) ,dialog is not [working properly](https://www.mindstick.com/articles/85595/how-to-troubleshoot-when-your-floating-pond-fountain-is-not-working-properly). When i open in [browser console](https://www.mindstick.com/forum/158342/how-can-you-debug-and-troubleshoot-javascript-errors-in-the-browser-console) It will thow this type [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing):

> ```
> Uncaught TypeError: $(...).dialog is not a function
> ```

\
**My Dialog Code is below:**\

```
<div id="dialog-alert" style="display: none">    <p>           ...................    </p></div><script type="text/javascript">$(document).ready(function () {              var url = "";        $(        $("#dialog-alert").dialog({            autoOpen:            autoOpen:true,            resizable:            resizable:true,            height: 100,            width: 350,            show: { effect:            height: 100,            width: 350,            show: { effect:'drop', direction: "up" },            modal:            modal:true,            draggable:            draggable:true,            open:            open:function (event, ui) {                $(                $(".ui-dialog-titlebar-close").hide();            },            buttons: {                           },            buttons: {               "OK": function () {                    $(                    $(this).dialog("close");                }            }        });    });
</script>
                }            }        });    });</script>
```

\
Please can [anyone give me](https://answers.mindstick.com/qa/41194/can-anyone-give-me-some-high-and-low-points-of-each-of-the-four-first-presidential-administrations) a solution.Thank you.

## Replies

### Reply by Mahfuzur Rahman

I got the same error and my [dialog](https://www.mindstick.com/forum/562/jquery-dialog-box-not-closed-in-asp-dot-net-mvc-4) is nit loading but normal form is loading and working.\
No jquery loading


---

Original Source: https://www.mindstick.com/forum/34093/uncaught-typeerror-dialog-is-not-a-function

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
