.dialog() is not a function || .accordian() is not a function
When working with jQuery and/or AJAX many people will use various functions. Sometimes after implementing these functions they do not work as expected.
When a jQuery function is not running to debug first open the inspector in the browser (in Chrome right click a blank area and select inspect). Select the console tab and look for an error that states “.dialog() (or some other function you are using) is not a function.” This is usually indicative that jQuery UI is not loaded or loaded correctly. To solve make sure that you are linking to a valid jQuery UI library and that the UI library is loaded AFTER a valid link to a compatible jQuery library.