I have a div (box) on my page and I use this script to display the div as a dialog box. Inside this div, I have a hyperlink. When I click the hyperlink, I want to disappear from the dialog box and close. The contents of the dialog box disappear, but the border of the dialog box remains the same. If I add the $ ("# box") dialog box. ("Close") in the click function after fadeto, the effect will not. It just closes the dialog completely. Any help? using jquery-ui-1.7.2
<script type="text/javascript"> $(document).ready(function(){ $("a#later").click(function () { $("#box").fadeTo('slow', 0); }) }); $(function () { $("#box").dialog({ autoOpen: true, width: 500, modal: true, }); }); </script>
jquery jquery-ui
Broken link
source share