How to close the dialog window? $(...).dialog is not a function

How to close the dialog window? $(...).dialog is not a function

Hi,
        I need to close the dialog window when click the cancel button. I know the options about data-role='back". I need to do programmatically(java script). I got this exception "$(...).dialog is not a function".



<script src="./jmobile/js/jquery-1.9.1.js"></script>
<script src="./jmobile/js/bredcrumbar/jquery-breadcrumbs.js"></script>
<script src="./jmobile/js/jquery.mobile-1.2.0.js"></script>
<script src="./jmobile/js/jquery-1.7.1.min.js"></script>
<script src="./jmobile/js/jquery.mobile-1.1.0-rc.1.min.js"></script>

<a href='#' onclick='$(".ui-dialog").dialog("close");' data-role='button' data-theme='c'>Close</a>

Error: TypeError: $(...).dialog is not a function