I HAVE THIS CODE: WHY IT IS NOT WORKING? I've tried it in several ways but it's not working either. Can someone help me please? I do not feel capable to find the error in this code.
<html>
 <head>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
  <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/humanity/jquery-ui.css" type="text/css" />
 </head>
 <body>
 <div id="contingut">
</div>
    <a class="enllac_dialog" href="http://mon.uvic.cat/ajutcampus/category/configuracions/dispositius-mobils/ios/">IOS</a>
    <a class="enllac_dialog" href="http://www.google.com">ANDROID</a>
    function showDialog(enllac){  //load content and open dialog
        $("#contingut").load(enllac);
        $("#contingut").dialog("open");         
    }
    $("#contingut").dialog({  //create dialog, but keep it closed
       autoOpen: false,
       height: 300,
       width: 350,
       modal: true
    });
        $('.enllac_dialog').click(function(e){
            e.preventDefault();
            var enllac = $(this).attr("href");
            console.log(enllac);
    showDialog(enllac);
    return false;
        });
  </script>
 </body>
</html>
 
    