Response title
This is preview!
I want to fade in 2 fields with help of JQuery: Should be very simple, but code doesn't work. Why ??
Only the first field is doing well, the second one is not fading.
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
#Redcolor {color: #F00;}
</style>
</head>
<body>
Test to fadeIn 2 fields<br>
First ok, second doesn't work<br>
<font id="Redcolor">First</font><br>
Now the next one<br>
<font id="Redcolor">Second</font>
<script type="text/javascript">
$(document).ready(function(){$("#Redcolor").hide().fadeIn(4000);});
</script>
</body>
</html>
© 2013 jQuery Foundation
Sponsored by and others.