I'm new to jQuery and I am trying to get a image to fade in but it won't. Can someone tell me what is wrong with the code? Thanks in advance
my Html page looks like this
<!doctype html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="main.css">
<script type="text/javascript">
$(document).ready(function(){
$(".slider#1").fadeIn("slow");
});
</script>
<title>slider</title>
</head>
<body>
<div class="slider" >
<img id="1" src="images/mountain.jpg" alt="Mountain"/>
<img id="2" src="images/roses.jpg" alt="Roses" />
<img id="3" src="images/vilage.jpg" alt="Village"/>
</div>
</body>
</html>
and my css code
* {margin: 0 padding:0}
.slider {
background-image: url(images/loader.gif);
background-repeat: no-repeat;
background-position: center;
border: 1px solid black;
overflow: hidden;
width: 700px;
height: 400px;
}
.slider img {
display: none;
width: 700px;
height: 400px;
}