i want to show alert when user clicking on link "Go"... but the function does not run... .....help me please..... here is my code:
<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.autocomplete.js"></script>
<script src="js/trip.min.js"></script>
<script src="js/chosen.jquery.min.js"></script>
<script>
$('.clk-btn').click(function(e){
e.preventDefault();
alert("Error");
});
</script>
</head>
<body>
<a class="clk-btn" href="#" >Go</a>
</body>
</html>